You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: database/README.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Often, database object definitions are changed after the sprint modeling activit
30
30
There is always a base set of fixed data that are not managed by the application, and must be populated by script. Some of these are merely temporary situations that will be resolved as stories evolve to replace them.
31
31
32
32
## Database Change Summaries
33
-
Each sprint delivers a planned set of incremental changes to the database. The following summarizes these changes.
33
+
Each sprint delivers a planned set of incremental changes to the database. The following summarizes the most recent sets of changes.
34
34
35
35
### Sprint 17:
36
36
- Create and populate lookup table `dss_economic_region`:
@@ -48,6 +48,17 @@ Each sprint delivers a planned set of incremental changes to the database. The f
48
48
-`jurisdiction_write` (for `ceu_admin`)
49
49
-`bl_link_write` (for `lg_staff`)
50
50
51
+
### Sprint 18:
52
+
- Replace procedures:
53
+
-`dss_process_biz_lic_table_delete`
54
+
-`dss_process_biz_lic_table_update`
55
+
- Alter table `dss_business_licence`:
56
+
- Replace index `dss_business_licence_i4`
57
+
- Alter table `dss_rental_listing`:
58
+
- Replace index `dss_rental_listing_i10`
59
+
- Insert new row in table `dss_business_licence_status_type`
60
+
- Update rows in table `dss_rental_listing`
61
+
51
62
## Database Release Management
52
63
Each production release depends on the execution of a fixed set of scripts against the database schema. Generally, these are applied in the same order as they were applied to the UAT database during each sprint. The following is the order list of scripts applied to deliver each release.
53
64
@@ -98,7 +109,7 @@ _Note: Master scripts are the preferred release method to use, starting with Rel
98
109
-`seeding/STR_DSS_Data_Seeding_Geometry_Sprint_9.sql`**(TIP: run each MERGE statement independently)**
CREATEINDEXIF NOT EXISTS dss_business_licence_i4 ON dss_business_licence ( regexp_replace(regexp_replace(UPPER(business_licence_no), '[^A-Z0-9]+', '', 'g'), '^0+', '') ) ;
6
+
7
+
DROPINDEX IF EXISTS dss_rental_listing_i10 ;
8
+
9
+
CREATEINDEXIF NOT EXISTS dss_rental_listing_i10 ON dss_rental_listing ( regexp_replace(regexp_replace(UPPER(business_licence_no), '[^A-Z0-9]+', '', 'g'), '^0+', '') ) ;
10
+
11
+
COMMENT ON TABLE dss_business_licence_status_type IS 'A potential status for a BUSINESS LICENCE (e.g. Pending, Denied, Issued, Suspended, Revoked, Cancelled, Expired)';
12
+
13
+
COMMENT ON COLUMN dss_business_licence_status_type.licence_status_type IS 'System-consistent code for the business licence status (e.g. Pending, Denied, Issued, Suspended, Revoked, Cancelled, Expired)';
14
+
15
+
COMMENT ON COLUMN dss_business_licence_status_type.licence_status_type_nm IS 'Business term for the licence status (e.g. Pending, Denied, Issued, Suspended, Revoked, Cancelled, Expired)';
0 commit comments