15 lines
510 B
TypeScript
15 lines
510 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddSlugToPlan1770014482427 implements MigrationInterface {
|
|
name = 'AddSlugToPlan1770014482427'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "invoice" ALTER COLUMN "purpose" DROP DEFAULT`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "invoice" ALTER COLUMN "purpose" SET DEFAULT 'new'`);
|
|
}
|
|
|
|
}
|