pin a version number for the patron card editor upgrade script
authorJason Etheridge <jason@esilibrary.com>
Thu, 1 Dec 2011 21:02:29 +0000 (16:02 -0500)
committerJason Etheridge <jason@esilibrary.com>
Thu, 1 Dec 2011 21:02:29 +0000 (16:02 -0500)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0654.patron_card_editor.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.patron_card_editor.sql [deleted file]

index 9930af5..54865b3 100644 (file)
@@ -86,7 +86,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 ('0653', :eg_version); -- berick/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0654', :eg_version); -- phasefx/tsbere
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0654.patron_card_editor.sql b/Open-ILS/src/sql/Pg/upgrade/0654.patron_card_editor.sql
new file mode 100644 (file)
index 0000000..06c40e8
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0654', :eg_version);
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES
+ ( 514, 'UPDATE_PATRON_ACTIVE_CARD', oils_i18n_gettext( 514,
+    'Allows a user to manually adjust a patron''s active cards', 'ppl', 'description')),
+ ( 515, 'UPDATE_PATRON_PRIMARY_CARD', oils_i18n_gettext( 515,
+    'Allows a user to manually adjust a patron''s primary card', 'ppl', 'description'));
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.patron_card_editor.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.patron_card_editor.sql
deleted file mode 100644 (file)
index 2c7cd3a..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-INSERT INTO permission.perm_list ( id, code, description ) VALUES
- ( 514, 'UPDATE_PATRON_ACTIVE_CARD', oils_i18n_gettext( 514,
-    'Allows a user to manually adjust a patron''s active cards', 'ppl', 'description')),
- ( 515, 'UPDATE_PATRON_PRIMARY_CARD', oils_i18n_gettext( 515,
-    'Allows a user to manually adjust a patron''s primary card', 'ppl', 'description'));
-