Skip to content

DTSRD-5696 LRD Court Venue - Data model updates#701

Open
SabinaHMCTS wants to merge 73 commits into
masterfrom
DTSRD-5695-1
Open

DTSRD-5696 LRD Court Venue - Data model updates#701
SabinaHMCTS wants to merge 73 commits into
masterfrom
DTSRD-5695-1

Conversation

@SabinaHMCTS

@SabinaHMCTS SabinaHMCTS commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

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")

[x] Yes
[ ] No

@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 12, 2026 10:49 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 08:29 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 08:48 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 09:23 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 09:42 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 10:26 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 10:49 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 13:37 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview February 13, 2026 15:11 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 19, 2026 19:29 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 20, 2026 11:01 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 20, 2026 12:03 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 20, 2026 16:02 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 21, 2026 07:39 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 21, 2026 09:38 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 21, 2026 09:51 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 21, 2026 10:14 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 21, 2026 10:48 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 21, 2026 11:15 Active
@hmcts-jenkins-j-to-z hmcts-jenkins-j-to-z Bot deployed to preview May 22, 2026 08:56 Active
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)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the semicolon not be here?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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",,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have expected a comma to be added, not removed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants