forked from fabric8-services/fabric8-wit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Random test failures because of work item creation error (fabric8-ser…
…vices#1676) Move the `work item number sequence` in its own subpackage, and create its dedicated repository with 2 methods: `Create` and `NextVal`. Use a new `ID` column for the primary key, so GORM will issue a proper `INSERT` query when a new number sequence is created. Make sure a space has a sequence initialized upon its own creation Other minor fixes in tests (eg: length of area name, etc.) Fixes fabric8-services#1676 Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
- Loading branch information
Showing
8 changed files
with
209 additions
and
145 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-- modify the `work_item_number_sequences` to include an independant ID column for the primary key | ||
alter table work_item_number_sequences drop constraint work_item_number_sequences_pkey; | ||
alter table work_item_number_sequences add column id uuid primary key DEFAULT uuid_generate_v4() NOT NULL; | ||
|
||
|
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.