n8n/packages/cli/src/databases/migrations/postgresdb/1607431743768-MakeStoppedAtNullable.ts
कारतोफ्फेलस्क्रिप्ट™ 82fe6383ef
refactor(core): Delete boilerplate code across migrations (no-changelog) (#5254)
2023-05-05 11:28:59 +02:00

10 lines
348 B
TypeScript

import type { MigrationContext, IrreversibleMigration } from '@db/types';
export class MakeStoppedAtNullable1607431743768 implements IrreversibleMigration {
async up({ queryRunner, tablePrefix }: MigrationContext) {
await queryRunner.query(
'ALTER TABLE ' + tablePrefix + 'execution_entity ALTER COLUMN "stoppedAt" DROP NOT NULL',
);
}
}