mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 00:19:04 +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
* 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>
29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
|
|
export class AddSSHBranchColumn1748501592120 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
const columnExists = await queryRunner.hasColumn('organization_git_ssh', 'git_branch');
|
|
if (!columnExists) {
|
|
await queryRunner.addColumn(
|
|
'organization_git_ssh',
|
|
new TableColumn({
|
|
name: 'git_branch',
|
|
type: 'varchar',
|
|
default: "'main'",
|
|
isNullable: false,
|
|
})
|
|
);
|
|
}
|
|
// For older users: if the GITSYNC_TARGET_BRANCH environment variable is configured, use the branch from .env variable in all the workspaces of that instance
|
|
// Otherwise, we default to 'master' since it was the default branch used previously.
|
|
const branch_name = process.env.GITSYNC_TARGET_BRANCH;
|
|
if (branch_name && branch_name !== 'master') {
|
|
await queryRunner.query(`UPDATE organization_git_ssh SET git_branch = '${branch_name}'`);
|
|
} else {
|
|
await queryRunner.query(`UPDATE organization_git_ssh SET git_branch = 'master'`);
|
|
}
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
|
}
|
|
// Migration Dev testing pending
|