mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
18 lines
560 B
TypeScript
18 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> {}
|
|
}
|