mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
10 lines
358 B
TypeScript
10 lines
358 B
TypeScript
import type { IrreversibleMigration, MigrationContext } from '@/databases/types';
|
|
|
|
export class AddMissingPrimaryKeyOnExecutionData1690787606731 implements IrreversibleMigration {
|
|
async up({ queryRunner, tablePrefix }: MigrationContext) {
|
|
await queryRunner.query(
|
|
`ALTER TABLE "${tablePrefix}execution_data" ADD PRIMARY KEY("executionId");`,
|
|
);
|
|
}
|
|
}
|