-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-83 createMissingTablesAndColumns not detecting missing PK (
#1797) * fix: EXPOSED-83 createMissingTablesAndColumns not detecting missing PK createMissingTablesAndColumns does not create a new primary key (PK) if the latter is defined by columns that already exist in the table. A new function, existingPrimaryKeys(), has been added to retrieve relevant metadata, which is used as a reference in addMissingColumnsStatements() to determine if the current table's PK should be added to an existing column(s). Add PrimaryKeyMetadata data class as a cleaner return value from existingPrimaryKeys().
- Loading branch information
Showing
8 changed files
with
258 additions
and
41 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.