mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-26 16:07:18 +00:00
20 lines
703 B
TypeScript
20 lines
703 B
TypeScript
|
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||
|
|
|
||
|
|
export class AddEnabledColumnProviderTable1747923859030 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.query(`
|
||
|
|
ALTER TABLE "organization_git_ssh" ADD COLUMN IF NOT EXISTS "is_enabled" boolean DEFAULT FALSE;
|
||
|
|
`);
|
||
|
|
|
||
|
|
await queryRunner.query(`
|
||
|
|
ALTER TABLE "organization_git_https" ADD COLUMN IF NOT EXISTS "is_enabled" boolean DEFAULT FALSE;
|
||
|
|
`);
|
||
|
|
|
||
|
|
await queryRunner.query(`
|
||
|
|
ALTER TABLE "organization_gitlab" ADD COLUMN IF NOT EXISTS "is_enabled" boolean DEFAULT FALSE;
|
||
|
|
`);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
||
|
|
}
|