mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
16 lines
521 B
TypeScript
16 lines
521 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(255)`,
|
|
);
|
|
}
|
|
|
|
async down({ queryRunner, tablePrefix }: MigrationContext) {
|
|
await queryRunner.query(
|
|
`ALTER TABLE \`${tablePrefix}execution_entity\` DROP COLUMN \`status\``,
|
|
);
|
|
}
|
|
}
|