generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
DTSRD-5699.LRD Court Venue - Updates to retrieveCourtVenuesBySearchString API for new model #1108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
SabinaHMCTS
wants to merge
18
commits into
master
Choose a base branch
from
DTSRD-5699
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
82886de
DTSRD-5695.LRD Court Venue - Data model updates
SabinaHMCTS 9482f1b
DTSRD-5695.LRD Court Venue - Data model updates
SabinaHMCTS c84503b
DTSRD-4052 . Adding extra column to court venue table
SabinaHMCTS e48047b
DTSRD-4052 . Adding extra column to court venue table
SabinaHMCTS d62ed52
DTSRD-4052 . Adding extra column to court venue table
SabinaHMCTS 8aa63c5
DTSRD-4052 . Adding extra column to court venue table
SabinaHMCTS 07f627d
DTSRD-4052 . Adding extra column to court venue table
SabinaHMCTS 7df61c5
DTSRD-5699 . LRD Court Venue - Updates to retrieveCourtVenuesBySearch…
SabinaHMCTS 7408a01
DTSRD-5699 . LRD Court Venue - Updates to retrieveCourtVenuesBySearch…
SabinaHMCTS 5dab66a
DTSRD-5699 . LRD Court Venue - Updates to retrieveCourtVenuesBySearch…
SabinaHMCTS 961f8fc
DTSRD-5699 . LRD Court Venue - Updates to retrieveCourtVenuesBySearch…
SabinaHMCTS af81535
DTSRD-5699 . LRD Court Venue - Updates to retrieveCourtVenuesBySearch…
SabinaHMCTS d4d05da
DTSRD-5700.LRD Court Venue - Updates to retrieveCourtVenuesByServiceC…
SabinaHMCTS 7369e4a
DTSRD-5699.LRD Court Venue - Updates to retrieveCourtVenuesBySearchSt…
SabinaHMCTS 4982726
DTSRD-5699.LRD Court Venue - Updates to retrieveCourtVenuesBySearchSt…
SabinaHMCTS 218c1fc
DTSRD-5699.LRD Court Venue - Updates to retrieveCourtVenuesBySearchSt…
SabinaHMCTS 1bafd8a
Branch was auto-updated.
github-actions[bot] 5600d49
Branch was auto-updated.
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
12 changes: 12 additions & 0 deletions
12
...est/resources/db/testmigration/V1_32__alter_court_venue_add_service_code_composite_pk.sql
This file contains hidden or 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,12 @@ | ||
| -- Add service_code column to court_venue table | ||
| ALTER TABLE court_venue ADD COLUMN IF NOT EXISTS service_code VARCHAR(16); | ||
|
|
||
| -- Drop the existing unique constraint on (epimms_id, court_type_id) | ||
| ALTER TABLE court_venue DROP CONSTRAINT IF EXISTS court_location_unique; | ||
|
|
||
| -- Add a new unique constraint with epimms_id and service_code | ||
| ALTER TABLE court_venue ADD CONSTRAINT court_location_unique UNIQUE (epimms_id, service_code); | ||
|
|
||
| -- Add foreign key constraint for service_code | ||
| ALTER TABLE court_venue ADD CONSTRAINT court_venue_service_code_fk FOREIGN KEY (service_code) REFERENCES SERVICE (service_code); | ||
|
|
16 changes: 16 additions & 0 deletions
16
src/integrationTest/resources/db/testmigration/V1_33__update_court_venue_service_code.sql
This file contains hidden or 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,16 @@ | ||
| UPDATE court_venue SET service_code = 'AAA2' WHERE court_venue_id = 1; | ||
| UPDATE court_venue SET service_code = 'AAA3' WHERE court_venue_id = 2; | ||
| UPDATE court_venue SET service_code = 'AAA6' WHERE court_venue_id = 3; | ||
| UPDATE court_venue SET service_code = 'ABA4' WHERE court_venue_id = 4; | ||
| UPDATE court_venue SET service_code = 'AAA2' WHERE court_venue_id = 5; | ||
| UPDATE court_venue SET service_code = 'AAA3' WHERE court_venue_id = 6; | ||
| UPDATE court_venue SET service_code = 'AAA6' WHERE court_venue_id = 7; | ||
| UPDATE court_venue SET service_code = 'ABA4' WHERE court_venue_id = 8; | ||
| UPDATE court_venue SET service_code = 'AAA2' WHERE court_venue_id = 9; | ||
| UPDATE court_venue SET service_code = 'AAA3' WHERE court_venue_id = 10; | ||
| UPDATE court_venue SET service_code = 'AAA6' WHERE court_venue_id = 11; | ||
| UPDATE court_venue SET service_code = 'ABA4' WHERE court_venue_id = 12; | ||
| UPDATE court_venue SET service_code = 'AAA2' WHERE court_venue_id = 13; | ||
| UPDATE court_venue SET service_code = 'AAA3' WHERE court_venue_id = 14; | ||
| UPDATE court_venue SET service_code = 'AAA6' WHERE court_venue_id = 15; | ||
| COMMIT; |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is removal of blank here known to not cause formatting issues?