fix : bug in extend sub
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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'`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user