mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-24 23:17:38 +00:00
19 lines
560 B
TypeScript
19 lines
560 B
TypeScript
|
|
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
||
|
|
|
||
|
|
export class AddWorkSpaceStatusColumn1704258217404 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.addColumns('organizations', [
|
||
|
|
new TableColumn({
|
||
|
|
name: 'status',
|
||
|
|
type: 'enum',
|
||
|
|
enumName: 'workspace_status',
|
||
|
|
enum: ['active', 'archived'],
|
||
|
|
default: `'active'`,
|
||
|
|
isNullable: false,
|
||
|
|
}),
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
||
|
|
}
|