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'`);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddSlugToPlan1770014896464 implements MigrationInterface {
|
||||
name = 'AddSlugToPlan1770014896464'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "subscription_plan" ADD "slug" character varying(150)`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "subscription_plan" DROP COLUMN "slug"`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user