mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
* 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 b139db811e.
* 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
* migration and entity changes
* module changes
* backend changes for edit app functionality
* ui changes
* added app canvas banner
* api-fix for freeze-editor apis
* header changes
* fix for delete version failing
* minor ui fix
* minor changes
* reverts
* reverts
* fixes
* fixed imports
* removed consoles
* added separate data migration for migrating provider column values
* fix
* fixes
* fixed ui breaking
* fix
* added app canvas banner in ce
---------
Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
Co-authored-by: rohan <rohan@gmail.com>
Co-authored-by: Midhun G S <gsmithun4@gmail.com>
35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class MigrateEnabledFlagToProviderColumns1749711866124 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`
|
|
UPDATE "organization_git_ssh" git_ssh
|
|
SET "is_enabled" = TRUE
|
|
FROM "organization_git_sync" git_sync
|
|
WHERE git_ssh."config_id" = git_sync."id"
|
|
AND git_sync."is_enabled" = TRUE
|
|
AND git_sync."git_type" = 'github_ssh';
|
|
`);
|
|
|
|
await queryRunner.query(`
|
|
UPDATE "organization_git_https" git_https
|
|
SET "is_enabled" = TRUE
|
|
FROM "organization_git_sync" git_sync
|
|
WHERE git_https."config_id" = git_sync."id"
|
|
AND git_sync."is_enabled" = TRUE
|
|
AND git_sync."git_type" = 'github_https';
|
|
`);
|
|
await queryRunner.query(`
|
|
UPDATE "organization_gitlab" gitlab
|
|
SET "is_enabled" = TRUE
|
|
FROM "organization_git_sync" git_sync
|
|
WHERE gitlab."config_id" = git_sync."id"
|
|
AND git_sync."is_enabled" = TRUE
|
|
AND git_sync."git_type" = 'gitlab';
|
|
`);
|
|
await queryRunner.dropColumn('organization_git_sync', 'is_enabled');
|
|
await queryRunner.dropColumn('organization_git_sync', 'git_type');
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
|
}
|