From a6bc91d7e26c23ed5c985a99418360f90e5c941d Mon Sep 17 00:00:00 2001 From: devinleighsmith Date: Thu, 19 Dec 2024 20:25:37 -0800 Subject: [PATCH] Add alter ups to change the name of the PIMS_ROLEs for lease/license --- .../Alter Down/011_DML_PIMS_ROLE_NAME.sql | 15 +++++++++++++++ .../PSP_PIMS_S96_00/Alter Down/master.sql | 3 +++ .../Alter Up/164_DML_PIMS_ROLE_NAME.sql | 15 +++++++++++++++ .../dbscripts/PSP_PIMS_S96_00/Alter Up/master.sql | 3 +++ 4 files changed, 36 insertions(+) create mode 100644 source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/011_DML_PIMS_ROLE_NAME.sql create mode 100644 source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/164_DML_PIMS_ROLE_NAME.sql diff --git a/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/011_DML_PIMS_ROLE_NAME.sql b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/011_DML_PIMS_ROLE_NAME.sql new file mode 100644 index 0000000000..43678b5d3d --- /dev/null +++ b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/011_DML_PIMS_ROLE_NAME.sql @@ -0,0 +1,15 @@ +UPDATE + PIMS_ROLE +SET + NAME = 'Lease/License functional', + CONCURRENCY_CONTROL_NUMBER = CONCURRENCY_CONTROL_NUMBER + 1 +WHERE + NAME = 'Lease License functional'; + +UPDATE + PIMS_ROLE +SET + NAME = 'Lease/License read-only', + CONCURRENCY_CONTROL_NUMBER = CONCURRENCY_CONTROL_NUMBER + 1 +WHERE + NAME = 'Lease License read-only'; \ No newline at end of file diff --git a/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/master.sql b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/master.sql index 36b93b5073..03de4bef69 100644 --- a/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/master.sql +++ b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Down/master.sql @@ -20,6 +20,9 @@ PRINT ' == DB TRANSACTION START ========' PRINT '- Executing PSP_PIMS_S96_00/Alter Down/010_DML_PIMS_STATIC_VARIABLE_VERSION.sql ' :setvar filepath "PSP_PIMS_S96_00/Alter Down/010_DML_PIMS_STATIC_VARIABLE_VERSION.sql" :r $(filepath) + PRINT '- Executing PSP_PIMS_S96_00/Alter Down/011_DML_PIMS_ROLE_NAME.sql ' + :setvar filepath "PSP_PIMS_S96_00/Alter Down/011_DML_PIMS_ROLE_NAME.sql" + :r $(filepath) --End script section diff --git a/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/164_DML_PIMS_ROLE_NAME.sql b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/164_DML_PIMS_ROLE_NAME.sql new file mode 100644 index 0000000000..fb047ac47a --- /dev/null +++ b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/164_DML_PIMS_ROLE_NAME.sql @@ -0,0 +1,15 @@ +UPDATE + PIMS_ROLE +SET + NAME = 'Lease License functional', + CONCURRENCY_CONTROL_NUMBER = CONCURRENCY_CONTROL_NUMBER + 1 +WHERE + NAME = 'Lease/License functional'; + +UPDATE + PIMS_ROLE +SET + NAME = 'Lease License read-only', + CONCURRENCY_CONTROL_NUMBER = CONCURRENCY_CONTROL_NUMBER + 1 +WHERE + NAME = 'Lease/License read-only'; \ No newline at end of file diff --git a/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/master.sql b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/master.sql index adac2a5c9e..2c2b1d8216 100644 --- a/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/master.sql +++ b/source/database/mssql/scripts/dbscripts/PSP_PIMS_S96_00/Alter Up/master.sql @@ -35,6 +35,9 @@ PRINT ' == DB TRANSACTION START ========' PRINT '- Executing PSP_PIMS_S96_00/Alter Up/163_DML_PIMS_ACQ_FILE_EXPROP_RISK_TYPE.sql ' :setvar filepath "PSP_PIMS_S96_00/Alter Up/163_DML_PIMS_ACQ_FILE_EXPROP_RISK_TYPE.sql" :r $(filepath) + PRINT '- Executing PSP_PIMS_S96_00/Alter Up/164_DML_PIMS_ROLE_NAME.sql ' + :setvar filepath "PSP_PIMS_S96_00/Alter Up/164_DML_PIMS_ROLE_NAME.sql" + :r $(filepath) --End script section