generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
2c1a359
commit 25949bf
Showing
7 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/functionalTest/resources/db/testmigration/V1_22__alter_tables_add_columns.sql
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/functionalTest/resources/db/testmigration/V1_22__lrd_mi_reporting.sql
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,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; | ||
|
27 changes: 27 additions & 0 deletions
27
src/functionalTest/resources/db/testmigration/V1_23__create_views.sql
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,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; |
7 changes: 7 additions & 0 deletions
7
src/functionalTest/resources/db/testmigration/V1_24__drop_indexes.sql
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,7 @@ | ||
DROP INDEX IF EXISTS service_code_idx ; | ||
|
||
|
||
DROP INDEX IF EXISTS ccd_case_type_idx ; | ||
|
||
|
||
|
2 changes: 2 additions & 0 deletions
2
src/functionalTest/resources/db/testmigration/V1_25__alter_tables_add_columns.sql
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,2 @@ | ||
ALTER TABLE court_venue ADD COLUMN IF NOT EXISTS short_court_name VARCHAR(80); | ||
|
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
1 change: 0 additions & 1 deletion
1
src/main/resources/db/migration/V1_22__alter_tables_add_columns.sql
This file was deleted.
Oops, something went wrong.