diff --git a/database/README.md b/database/README.md index b9458c3d..b1c8c475 100644 --- a/database/README.md +++ b/database/README.md @@ -42,6 +42,7 @@ Each sprint delivers a planned set of incremental changes to the database. The f - Add foreign key to table `dss_economic_region` - Add foreign key to table `dss_local_government_type` - Add column: `business_licence_format_txt` +- Create view `dss_local_gov_vw` - Seed new rows in table `dss_user_privilege` and `dss_user_role_privilege`: - `jurisdiction_read` (for `ceu_admin`, `ceu_staff`) - `jurisdiction_write` (for `ceu_admin`) @@ -144,6 +145,7 @@ _Note: Master scripts are the preferred release method to use, starting with Rel - `seeding/STR_DSS_Data_Seeding_Geometry_Sprint_16.sql` **(TIP: run each MERGE statement independently)** - Sprint 17: - `ddl/STR_DSS_Incremental_DB_DDL_Sprint_17_pre_DML.sql` + - `ddl/STR_DSS_Views_Sprint_17.sql` - `seeding/STR_DSS_Data_Seeding_Sprint_17.sql` - `seeding/STR_DSS_Data_Seeding_LGs_Sprint_17.sql` - `seeding/STR_DSS_Data_Seeding_Geometry_Sprint_17.sql` **(TIP: run each MERGE statement independently)** diff --git a/database/utility/STR_DSS_Migration_Sprint_17.sql b/database/utility/STR_DSS_Migration_Sprint_17.sql index a6d25220..34472d8a 100644 --- a/database/utility/STR_DSS_Migration_Sprint_17.sql +++ b/database/utility/STR_DSS_Migration_Sprint_17.sql @@ -27,6 +27,8 @@ as db_has_s17_col \echo 'Sprint 16 migration appears complete - Beginning upgrade to Sprint 17' \echo 'Calling STR_DSS_Incremental_DB_DDL_Sprint_17_pre_DML.sql' \ir '../ddl/STR_DSS_Incremental_DB_DDL_Sprint_17_pre_DML.sql' + \echo 'Adding/replacing views' + \ir '../ddl/STR_DSS_Views_Sprint_17.sql' \echo 'Calling STR_DSS_Data_Seeding_Sprint_17.sql' \ir '../seeding/STR_DSS_Data_Seeding_Sprint_17.sql' \echo 'Calling STR_DSS_Data_Seeding_LGs_Sprint_17.sql' @@ -41,6 +43,8 @@ as db_has_s17_col \echo 'Database has no DSS tables - Beginning complete build to Sprint 17' \echo 'Calling STR_DSS_Physical_DB_DDL_Sprint_17.sql' \ir '../ddl/STR_DSS_Physical_DB_DDL_Sprint_17.sql' + \echo 'Adding/replacing views' + \ir '../ddl/STR_DSS_Views_Sprint_17.sql' \echo 'Calling STR_DSS_Data_Seeding_Sprint_17.sql' \ir '../seeding/STR_DSS_Data_Seeding_Sprint_17.sql' \echo 'Calling STR_DSS_Data_Seeding_LGs_Sprint_17.sql'