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

index e5830e2..5f5cabf 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 ('0608', :eg_version); -- miker/berick
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0609', :eg_version); -- miker/berick
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0609.schema.acq-lineitem-detail-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/0609.schema.acq-lineitem-detail-receiver.sql
new file mode 100644 (file)
index 0000000..49042bd
--- /dev/null
@@ -0,0 +1,11 @@
+-- Evergreen DB patch XXXX.data.acq-copy-creator-from-receiver.sql
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0609', :eg_version);
+
+ALTER TABLE acq.lineitem_detail 
+    ADD COLUMN receiver        INT REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED;
+
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-lineitem-detail-receiver.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.acq-lineitem-detail-receiver.sql
deleted file mode 100644 (file)
index 8a604f9..0000000
+++ /dev/null
@@ -1,11 +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);
-
-ALTER TABLE acq.lineitem_detail 
-    ADD COLUMN receiver        INT REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED;
-
-
-COMMIT;