Stamped upgrade script for acq-copy-creator-from-receiver
authorMike Rylander <mrylander@gmail.com>
Thu, 25 Aug 2011 00:16:28 +0000 (20:16 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 25 Aug 2011 00:16:28 +0000 (20:16 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0610.data.acq-copy-creator-from-receiver.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq-copy-creator-from-receiver.sql [deleted file]

index 5f5cabf..941ea93 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 ('0609', :eg_version); -- miker/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0610', :eg_version); -- miker/berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0610.data.acq-copy-creator-from-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/0610.data.acq-copy-creator-from-receiver.sql
new file mode 100644 (file)
index 0000000..afc8fc8
--- /dev/null
@@ -0,0 +1,24 @@
+-- Evergreen DB patch XXXX.data.acq-copy-creator-from-receiver.sql
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0610', :eg_version);
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES (
+    'acq.copy_creator_uses_receiver',
+    oils_i18n_gettext( 
+        'acq.copy_creator_uses_receiver',
+        'Acq: Set copy creator as receiver',
+        'coust',
+        'label'
+    ),
+    oils_i18n_gettext( 
+        'acq.copy_creator_uses_receiver',
+        'When receiving a copy in acquisitions, set the copy "creator" to be the staff that received the copy',
+        'coust',
+        'label'
+    ),
+    'bool'
+);
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq-copy-creator-from-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq-copy-creator-from-receiver.sql
deleted file mode 100644 (file)
index 14b22d4..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
--- Evergreen DB patch XXXX.data.acq-copy-creator-from-receiver.sql
-BEGIN;
-
--- check whether patch can be applied
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES (
-    'acq.copy_creator_uses_receiver',
-    oils_i18n_gettext( 
-        'acq.copy_creator_uses_receiver',
-        'Acq: Set copy creator as receiver',
-        'coust',
-        'label'
-    ),
-    oils_i18n_gettext( 
-        'acq.copy_creator_uses_receiver',
-        'When receiving a copy in acquisitions, set the copy "creator" to be the staff that received the copy',
-        'coust',
-        'label'
-    ),
-    'bool'
-);
-
-COMMIT;