mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(core): Add missing primary key on the execution_data
table on postgres (#6797)
This commit is contained in:
parent
3d6f5a24af
commit
dc295ac5bf
|
@ -0,0 +1,9 @@
|
|||
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");`,
|
||||
);
|
||||
}
|
||||
}
|
|
@ -40,6 +40,7 @@ import { MigrateIntegerKeysToString1690000000000 } from './1690000000000-Migrate
|
|||
import { SeparateExecutionData1690000000020 } from './1690000000020-SeparateExecutionData';
|
||||
import { RemoveSkipOwnerSetup1681134145997 } from './1681134145997-RemoveSkipOwnerSetup';
|
||||
import { RemoveResetPasswordColumns1690000000030 } from '../common/1690000000030-RemoveResetPasswordColumns';
|
||||
import { AddMissingPrimaryKeyOnExecutionData1690787606731 } from './1690787606731-AddMissingPrimaryKeyOnExecutionData';
|
||||
|
||||
export const postgresMigrations: Migration[] = [
|
||||
InitialMigration1587669153312,
|
||||
|
@ -83,4 +84,5 @@ export const postgresMigrations: Migration[] = [
|
|||
SeparateExecutionData1690000000020,
|
||||
RemoveSkipOwnerSetup1681134145997,
|
||||
RemoveResetPasswordColumns1690000000030,
|
||||
AddMissingPrimaryKeyOnExecutionData1690787606731,
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue