-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add primary key to selectors table in resource groups database
Some databases like Percona XtraDB Cluster prohibit inserts into tables without primary keys. This change also makes this table consistent with other tables in the resource groups database.
- Loading branch information
1 parent
173402e
commit 93bfb11
Showing
3 changed files
with
3 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...group-managers/src/main/resources/db/migration/mysql/V6__add_primary_key_to_selectors.sql
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 @@ | ||
ALTER TABLE selectors ADD id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY; |
1 change: 1 addition & 0 deletions
1
...roup-managers/src/main/resources/db/migration/oracle/V6__add_primary_key_to_selectors.sql
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 @@ | ||
ALTER TABLE selectors ADD id NUMBER GENERATED ALWAYS as IDENTITY(START with 1 INCREMENT by 1) PRIMARY KEY; |
1 change: 1 addition & 0 deletions
1
...-managers/src/main/resources/db/migration/postgresql/V6__add_primary_key_to_selectors.sql
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 @@ | ||
ALTER TABLE selectors ADD COLUMN id BIGSERIAL PRIMARY KEY; |