LP#1360347: Stamping upgrade script for custom status at receiving
authorKathy Lussier <klussier@masslnc.org>
Fri, 10 Feb 2017 15:55:07 +0000 (10:55 -0500)
committerKathy Lussier <klussier@masslnc.org>
Fri, 10 Feb 2017 15:55:07 +0000 (10:55 -0500)
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/1009.data.acq_status_on_lineitem_receiving.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq_status_on_lineitem_receiving.sql [deleted file]

index 1c5b717..e0e88fe 100644 (file)
@@ -91,7 +91,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 ('1008', :eg_version); -- Dpearl/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1009', :eg_version); -- csharp/kmlussier
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/1009.data.acq_status_on_lineitem_receiving.sql b/Open-ILS/src/sql/Pg/upgrade/1009.data.acq_status_on_lineitem_receiving.sql
new file mode 100644 (file)
index 0000000..1815121
--- /dev/null
@@ -0,0 +1,16 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('1009', :eg_version);
+
+INSERT into config.org_unit_setting_type
+( name, grp, label, description, datatype, fm_class ) VALUES
+( 'acq.copy_status_on_receiving', 'acq',
+    oils_i18n_gettext('acq.copy_status_on_receiving',
+        'Initial status for received items',
+        'coust', 'label'),
+    oils_i18n_gettext('acq.copy_status_on_receiving',
+        'Allows staff to designate a custom copy status on received lineitems.  Default status is "In Process".',
+        'coust', 'description'),
+    'link', 'ccs');
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq_status_on_lineitem_receiving.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.acq_status_on_lineitem_receiving.sql
deleted file mode 100644 (file)
index ada8a1e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-INSERT into config.org_unit_setting_type
-( name, grp, label, description, datatype, fm_class ) VALUES
-( 'acq.copy_status_on_receiving', 'acq',
-    oils_i18n_gettext('acq.copy_status_on_receiving',
-        'Initial status for received items',
-        'coust', 'label'),
-    oils_i18n_gettext('acq.copy_status_on_receiving',
-        'Allows staff to designate a custom copy status on received lineitems.  Default status is "In Process".',
-        'coust', 'description'),
-    'link', 'ccs');
-
-COMMIT;