mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-25 07:27:28 +00:00
13 lines
516 B
TypeScript
13 lines
516 B
TypeScript
|
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||
|
|
|
||
|
|
export class AddPlanToOrganizationSubscription1738833975655 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.query(`ALTER TABLE organization_subscriptions
|
||
|
|
ADD COLUMN plan VARCHAR(200) NULL DEFAULT NULL`);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.query('ALTER TABLE organization_subscriptions DROP COLUMN IF EXISTS plan');
|
||
|
|
}
|
||
|
|
}
|