From: Chris Sharp Date: Mon, 4 May 2020 17:20:09 +0000 (-0400) Subject: LP#1873048 - Stamp upgrade script X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d338486c851339b65ebe42c6ecc245774098d2b7;p=evergreen%2Fpines.git LP#1873048 - Stamp upgrade script Signed-off-by: Chris Sharp --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index 5aed8bcd9e..a7c976a3eb 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1203', :eg_version); -- phasefx/lstratton/bshum +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1204', :eg_version); -- jeffdavis/sandbergja/csharp CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/1204.data.permission.booking_resource.sql b/Open-ILS/src/sql/Pg/upgrade/1204.data.permission.booking_resource.sql new file mode 100644 index 0000000000..985e567798 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/1204.data.permission.booking_resource.sql @@ -0,0 +1,11 @@ +BEGIN; +SELECT evergreen.upgrade_deps_block_check('1204', :eg_version); + +INSERT INTO permission.perm_list ( id, code, description ) VALUES + ( 621, 'VIEW_BOOKING_RESOURCE_TYPE', oils_i18n_gettext(621, + 'View booking resource types', 'ppl', 'description')), + ( 622, 'VIEW_BOOKING_RESOURCE', oils_i18n_gettext(622, + 'View booking resources', 'ppl', 'description')) +; + +COMMIT; diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_resource.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_resource.sql deleted file mode 100644 index 2bbdce6c6c..0000000000 --- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.permission.booking_resource.sql +++ /dev/null @@ -1,11 +0,0 @@ -BEGIN; -SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); - -INSERT INTO permission.perm_list ( id, code, description ) VALUES - ( 621, 'VIEW_BOOKING_RESOURCE_TYPE', oils_i18n_gettext(621, - 'View booking resource types', 'ppl', 'description')), - ( 622, 'VIEW_BOOKING_RESOURCE', oils_i18n_gettext(622, - 'View booking resources', 'ppl', 'description')) -; - -COMMIT;