mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
19 lines
570 B
TypeScript
19 lines
570 B
TypeScript
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
|
|
export class AddStatusToWorkflowExecution1722934934124 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.addColumn(
|
|
'workflow_executions',
|
|
new TableColumn({
|
|
name: 'status',
|
|
type: 'varchar',
|
|
isNullable: false,
|
|
default: "'success'",
|
|
})
|
|
);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.dropColumn('workflow_executions', 'status');
|
|
}
|
|
}
|