-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): Add missing primary key on the
execution_data
table on p…
…ostgres (#6797)
- Loading branch information
1 parent
df32517
commit a9a2c9e
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
.../src/databases/migrations/postgresdb/1690787606731-AddMissingPrimaryKeyOnExecutionData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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");`, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters