[open-ils-commits] [GIT] Evergreen ILS branch master updated. 0f31fcdffca6430675a9e945189eb02d0a0b9006

Evergreen Git git at git.evergreen-ils.org
Wed Jun 10 15:08:24 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  0f31fcdffca6430675a9e945189eb02d0a0b9006 (commit)
       via  d64a227b8731066bdb85c8124f4372573b470026 (commit)
      from  42632768ec820f79171dc5aee31ba7db4e9b423d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0f31fcdffca6430675a9e945189eb02d0a0b9006
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Wed Jun 10 15:05:13 2015 -0400

    LP#1289486 Stamping upgrade for dropping acq audit fkey
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index a0a4a4e..8b05a3b 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -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/XXXX.schema.drop-acq-audit-fkey.sql b/Open-ILS/src/sql/Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql
similarity index 65%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.drop-acq-audit-fkey.sql
rename to Open-ILS/src/sql/Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql
index 2515bf4..c204290 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.drop-acq-audit-fkey.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql
@@ -1,6 +1,6 @@
 BEGIN;
 
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+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 d64a227b8731066bdb85c8124f4372573b470026
Author: Mike Rylander <mrylander at gmail.com>
Date:   Mon Jun 8 17:30:52 2015 -0400

    LP#1289486: Remove blocking constraint from audit table
    
    The ACQ lineitem audit table was augmented with an fkey pointing
    to the queued record that was related to the line item.  That's
    bad because there are also triggers which attempt to manage that
    table.  Hilarity ensues.  We should not have an fkey on an audit
    table, so, we now remove that.
    
    In order to test this, first attempt to delete an ACQ queue and
    have that fail.  Apply the DB change, attempt again, and have it
    succeed.
    
    Signed-off-by: Mike Rylander <mrylander at gmail.com>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

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
new file mode 100644
index 0000000..2515bf4
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.drop-acq-audit-fkey.sql
@@ -0,0 +1,7 @@
+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;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 .../Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/0919.schema.drop-acq-audit-fkey.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list