15 lines
506 B
TypeScript
15 lines
506 B
TypeScript
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"`);
|
|
}
|
|
|
|
}
|