LP1849683: Stamp upgrade script
authorJason Boyer <JBoyer@eoli.info>
Tue, 31 Mar 2020 12:07:45 +0000 (08:07 -0400)
committerJason Boyer <JBoyer@eoli.info>
Tue, 31 Mar 2020 12:07:45 +0000 (08:07 -0400)
Signed-off-by: Jason Boyer <JBoyer@eoli.info>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1201.data.opac_custom_css_permission.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_custom_css_permission.sql [deleted file]

index f3e6244..9f9bcbb 100644 (file)
@@ -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 ('1200', :eg_version); -- jeffdavis/csharp
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1201', :eg_version); -- rhamby/jboyer
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1201.data.opac_custom_css_permission.sql b/Open-ILS/src/sql/Pg/upgrade/1201.data.opac_custom_css_permission.sql
new file mode 100644 (file)
index 0000000..981faee
--- /dev/null
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1201', :eg_version); -- rhamby/jboyer
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES
+( 620, 'UPDATE_ORG_UNIT_SETTING.opac.patron.custom_css', oils_i18n_gettext(620,
+   'Update CSS setting for the OPAC', 'ppl', 'description'))
+;
+
+UPDATE config.org_unit_setting_type SET update_perm = 620 WHERE name = 'opac.patron.custom_css';
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_custom_css_permission.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.opac_custom_css_permission.sql
deleted file mode 100644 (file)
index e7923af..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO permission.perm_list ( id, code, description ) VALUES
-( 620, 'UPDATE_ORG_UNIT_SETTING.opac.patron.custom_css', oils_i18n_gettext(620,
-   'Update CSS setting for the OPAC', 'ppl', 'description'))
-;
-
-UPDATE config.org_unit_setting_type SET update_perm = 620 WHERE name = 'opac.patron.custom_css';
-
-COMMIT;