LP#1289486 Stamping upgrade for dropping acq audit fkey
authorDan Wells <dbw2@calvin.edu>
Wed, 10 Jun 2015 19:05:13 +0000 (15:05 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 10 Jun 2015 19:05:13 +0000 (15:05 -0400)
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.drop-acq-audit-fkey.sql [deleted file]

index a0a4a4e..8b05a3b 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 ('0918', :eg_version); -- gmcharlt/dbwells
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0919', :eg_version); -- miker/dbwells
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql b/Open-ILS/src/sql/Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql
new file mode 100644 (file)
index 0000000..c204290
--- /dev/null
@@ -0,0 +1,7 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('0919', :eg_version);
+
+ALTER TABLE acq.acq_lineitem_history DROP CONSTRAINT IF EXISTS acq_lineitem_history_queued_record_fkey;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.drop-acq-audit-fkey.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.drop-acq-audit-fkey.sql
deleted file mode 100644 (file)
index 2515bf4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-BEGIN;
-
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-
-ALTER TABLE acq.acq_lineitem_history DROP CONSTRAINT IF EXISTS acq_lineitem_history_queued_record_fkey;
-
-COMMIT;