15 lines
554 B
TypeScript
15 lines
554 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddSoftDeleteToUserSubscription1770464625677 implements MigrationInterface {
|
|
name = 'AddSoftDeleteToUserSubscription1770464625677'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "user_subscription" ADD "deletedAt" TIMESTAMP WITH TIME ZONE`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "user_subscription" DROP COLUMN "deletedAt"`);
|
|
}
|
|
|
|
}
|