ToolJet/server/migrations/1747923859030-AddEnabledColumnProviderTable.ts

20 lines
703 B
TypeScript
Raw Normal View History

Moving Git Module to Pre-Release (#12852) * init * ee git-sync * dependancies * added octokit depedencies to server directory * module fixes * fixes * fixes * pull app changes fix * ability factory fixes * code restructuring changes * added gitlab backend changes * app git module fixes * module file changes * added logo images * migration * migration * migration changes * added migration to remove enabledflag from parent table * provider and migration fixes * removed comments * revert appimport export changes * Revert "revert appimport export changes" This reverts commit b139db811e44157eef04ed919c93c315d5837d98. * fixed version rename api calls * app/version rename commit fixes * added builder permissions * review comment changes * module file and service fixes * module fixes * fixes * fixed module file changes * added git-sync repository * fixed app-git imports * removed injected ssh,https, gitlab repositories * added app git sync repository (dev testing pending) * removed more modules * removed type orm completley (dev testing pending) * fixed module file * removed unused dto's * working * fixes * removed comments * migration changes * removed node git package * changed default branch to main * ssh * removed apps ability factory dependencies * minor changes * migration fixes * fixes * added events for app and version rename * removed comments * added license checks * listener fixes * removed unused files * fixed db:reset and server issues * fixed ce and ee migration * submoudle commits * minor changes * reverts * reverts * fixes * fixed imports --------- Co-authored-by: rohanlahori <rohanlahori99@gmail.com> Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: rohan <rohan@gmail.com>
2025-06-11 11:33:58 +00:00
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> {}
}