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
* 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>
95 lines
2.4 KiB
TypeScript
95 lines
2.4 KiB
TypeScript
import { MigrationInterface, QueryRunner, Table, TableForeignKey } from 'typeorm';
|
|
|
|
export class CreateTableGithubHTTPS1742215405123 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.createTable(
|
|
new Table({
|
|
name: 'organization_git_https',
|
|
columns: [
|
|
{
|
|
name: 'id',
|
|
type: 'uuid',
|
|
isGenerated: true,
|
|
default: 'gen_random_uuid()',
|
|
isPrimary: true,
|
|
},
|
|
{
|
|
name: 'config_id',
|
|
type: 'uuid',
|
|
isNullable: false,
|
|
isUnique: true,
|
|
},
|
|
{
|
|
name: 'https_url',
|
|
type: 'varchar',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
name: 'github_branch',
|
|
type: 'varchar',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
name: 'github_app_id',
|
|
type: 'varchar',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
name: 'github_installation_id',
|
|
type: 'varchar',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
name: 'github_enterprise_url',
|
|
type: 'varchar',
|
|
isNullable: true,
|
|
default: null,
|
|
},
|
|
{
|
|
name: 'github_enterprise_api_url',
|
|
type: 'varchar',
|
|
isNullable: true,
|
|
default: null,
|
|
},
|
|
{
|
|
name: 'github_private_key',
|
|
type: 'text',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
name: 'is_finalized',
|
|
type: 'boolean',
|
|
isNullable: false,
|
|
default: false,
|
|
},
|
|
{
|
|
name: 'created_at',
|
|
type: 'timestamp',
|
|
isNullable: false,
|
|
default: 'now()',
|
|
},
|
|
{
|
|
name: 'updated_at',
|
|
type: 'timestamp',
|
|
isNullable: false,
|
|
default: 'now()',
|
|
},
|
|
],
|
|
})
|
|
);
|
|
|
|
await queryRunner.createForeignKey(
|
|
'organization_git_https',
|
|
new TableForeignKey({
|
|
columnNames: ['config_id'],
|
|
referencedColumnNames: ['id'],
|
|
referencedTableName: 'organization_git_sync',
|
|
onDelete: 'CASCADE',
|
|
})
|
|
);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.dropTable('organization_git_https');
|
|
}
|
|
}
|