mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-25 15:37:37 +00:00
18 lines
562 B
TypeScript
18 lines
562 B
TypeScript
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
|
|
export class AddCreationModeFieldInAppTable1697017670727 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.addColumns('apps', [
|
|
new TableColumn({
|
|
name: 'creation_mode',
|
|
type: 'enum',
|
|
enumName: 'app_creation_mode',
|
|
enum: ['GIT', 'DEFAULT'],
|
|
default: `'DEFAULT'`,
|
|
isNullable: false,
|
|
}),
|
|
]);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
|
}
|