DTSRD-5696 LRD Court Venue - Data model updates#701
Open
SabinaHMCTS wants to merge 73 commits into
Open
Conversation
dasdas message
mattnayler
approved these changes
May 26, 2026
lukasz-wolski
approved these changes
May 26, 2026
| alter table court_venue drop CONSTRAINT court_location_code_uq; | ||
|
|
||
| alter table court_venue add CONSTRAINT court_location_uq UNIQUE (epimms_id,site_name,court_type_id); | ||
| alter table court_venue add CONSTRAINT court_location_uq UNIQUE (epimms_id,site_name,court_type_id) |
Contributor
There was a problem hiding this comment.
should the semicolon not be here?
There was a problem hiding this comment.
FYI: This change is to bring the data-load flyway migration files into line with the existing LRD flyway scripts: https://github.com/hmcts/rd-location-ref-api/blob/master/src/main/resources/db/migration/V1_13__lrd_surrogate_key_changes.sql
| ePIMS_ID,Site_Name,Court_Name,Court_Status,Court_Open_Date,Region_ID,Court_Type_ID,Cluster_ID,Open_For_Public,Court_Address,Postcode,Phone_Number,Closed_Date,Court_Location_Code,Dx_Address,Welsh_Site_Name,Welsh_Court_Address,Venue_Name,Is_Case_Management_Location,Is_Hearing_Location,Welsh_Venue_Name,Is_Temporary_Location,Is_Nightingale_Court,Location_Type,Parent_Location,Welsh_Court_Name,UPRN,Venue_OU_Code,MRD_Building_Location_ID,MRD_Venue_ID,Service_URL,FACT_URL,MRD_Created_Time,MRD_Updated_Time,MRD_Deleted_Time,External_Short_Name,Welsh_External_Short_Name,ServiceID | ||
| 123456,A Tribunal Hearing Centre,A TRIBUNAL HEARING CENTRE,Open,,7,17,,Yes,"AB1,48 COURT STREET,LONDON",AB12 3AB,,,,,,,,,,"testVenue1","N","N","Court","366559","testWelshCourtName","uprn123","venueOuCode1","mrdBId1","mrdVenueId1","serviceUrl1","factUrl1",01-04-2022 02:00:01,01-04-2022 02:00:02,01-04-2022 02:00:03 | ||
| 123456,B Tribunal Hearing Centre,B TRIBUNAL HEARING CENTRE,Open,,7,31,,Yes,"AB1,48 COURT STREET,LONDON",AB12 3AB,,,,,,,,,,"testVenue2","N","N","Court","372653","testWelshCourtName","uprn123","venueOuCode1","mrdBId1","mrdVenueId1","serviceUrl1","factUrl1",,, | ||
| 123456,B Tribunal Hearing Centre,B TRIBUNAL HEARING CENTRE,Open,,7,31,,Yes,"AB1,48 COURT STREET,LONDON",AB12 3AB,,,,,,,,,,"testVenue2","N","N","Court","372653","testWelshCourtName","uprn123","venueOuCode1","mrdBId1","mrdVenueId1","serviceUrl1","factUrl1",, |
Contributor
There was a problem hiding this comment.
I would have expected a comma to be added, not removed?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
JIRA link (if applicable)
DTSRD-5696 - LRD Court Venue - MRD file ingestion updates
Change description
LRD Court Venue - Data model updates + MRD file ingestion updates
Dependencies
NB: This branch has a dependency on:
Does this PR introduce a breaking change? (check one with "x")