mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-28 15:48:49 +02:00
14 lines
504 B
TypeScript
14 lines
504 B
TypeScript
import type { MigrationContext, ReversibleMigration } from '@/databases/types';
|
|
|
|
export class AddStatusToExecutions1674138566000 implements ReversibleMigration {
|
|
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
|
await queryRunner.query(
|
|
`ALTER TABLE \`${tablePrefix}execution_entity\` ADD COLUMN "status" varchar`,
|
|
);
|
|
}
|
|
|
|
async down({ queryRunner, tablePrefix }: MigrationContext) {
|
|
await queryRunner.query(`ALTER TABLE \`${tablePrefix}execution_entity\` DROP COLUMN "status"`);
|
|
}
|
|
}
|