Skip to content

Commit

Permalink
Fix database migration for MySQL (#685)
Browse files Browse the repository at this point in the history
* move preconditions on databaseChangeLog level
* changed primaryKeyName to match one already in place
* move precon on changeset, change keyname
  • Loading branch information
itsouvalas authored Jul 1, 2022
1 parent 759b055 commit c0ee963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/databasechangelog-primarykey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ databaseChangeLog:
- not:
- primaryKeyExists:
tableName: DATABASECHANGELOG
primaryKeyName: "PK_DATABASECHANGELOG"
primaryKeyName: PRIMARY
changes:
- addPrimaryKey:
columnNames: "id,author,filename"
constraintName: "PK_DATABASECHANGELOG"
constraintName: PK_DATABASECHANGELOG
schemaName: autoscaler
tableName: DATABASECHANGELOG

0 comments on commit c0ee963

Please sign in to comment.