Skip to content

Commit

Permalink
Dtsrd 2540 (#403)
Browse files Browse the repository at this point in the history
* DTSRD-2505: Add new column (Short_Court_Name) to the court_venue table

* DTSRD-2505: Add new column (Short_Court_Name) to the court_venue table

* DTSRD-2505: revert the changes done for Account names

* DTSRD-2505: revert the changes done for Account names

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: sync both ref-api and datalod reposiories

* DTSRD-2505: remove migration files, migration has to be from location-ref-api

* DTSRD-2505: Flyway migration should be done from rd-location-ref-api
  • Loading branch information
kiran-yenigala-hmcts authored Apr 23, 2024
1 parent 2c1a359 commit 25949bf
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 7 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
CREATE SCHEMA IF NOT EXISTS rdlocationreport;

CREATE OR REPLACE VIEW rdlocationreport.vw_org_unit AS
SELECT org_unit_id, description
FROM org_unit;

CREATE OR REPLACE VIEW rdlocationreport.vw_org_business_area AS
SELECT business_area_id, description
FROM org_business_area;

CREATE OR REPLACE VIEW rdlocationreport.vw_org_sub_business_area AS
SELECT sub_business_area_id, description
FROM org_sub_business_area;

CREATE OR REPLACE VIEW rdlocationreport.vw_jurisdiction AS
SELECT jurisdiction_id, description
FROM jurisdiction;

CREATE OR REPLACE VIEW rdlocationreport.vw_service AS
SELECT service_id, org_unit_id, business_area_id, sub_business_area_id, jurisdiction_id,service_code,service_description, service_short_description
FROM service;

CREATE OR REPLACE VIEW rdlocationreport.vw_region AS
SELECT region_id, description
FROM region;

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- view creation for cluster
create view rdlocationreport.vw_cluster as
select cluster_id, cluster_name from cluster;

-- view creation for court_type
create view rdlocationreport.vw_court_type as
select court_type_id, court_type, welsh_court_type
from court_type;

-- view creation for building_location
create view rdlocationreport.vw_building_location as
select building_location_id, epimms_id, building_location_name,area, region_id,cluster_id, court_finder_url, postcode,
address, building_location_status, welsh_building_location_name, welsh_address, uprn, latitude, longitude
from building_location;

-- view creation for court_venue
create view rdlocationreport.vw_court_venue as
select site_name, 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, court_status, court_open_date,
court_name ,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 from court_venue;

-- view creation for court_type_service_assoc
create view rdlocationreport.vw_court_type_service_assoc as
select court_type_service_assoc_id, service_code,court_type_id
from court_type_service_assoc;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DROP INDEX IF EXISTS service_code_idx ;


DROP INDEX IF EXISTS ccd_case_type_idx ;



Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE court_venue ADD COLUMN IF NOT EXISTS short_court_name VARCHAR(80);

6 changes: 1 addition & 5 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spring:
enabled: false
# jackson.date-format: yyyy-MM-dd
flyway:
enabled: ${FLYWAY_ENABLED:true}
enabled: false
locations: classpath:db/migration
schemas: locrefdata
config:
Expand All @@ -62,7 +62,3 @@ spring:
- lrd-court-venue-router
mail:
enabled: false

ACCOUNT_NAME: rdpreview
ACCOUNT_KEY: 0+VBTzfcEU7KaatWUgruR8lxJHCtoXuXZQcbPPcxp8WSTa2c3K4nWFdrNr2b45UpMJePHkZ0I2SatzDlC4e93w==
CONTAINER_NAME: lrd-ref-data

This file was deleted.

0 comments on commit 25949bf

Please sign in to comment.