[open-ils-commits] [GIT] Evergreen ILS branch rel_2_7 updated. 08bd7ca10c0650182093041d5102767d59a33953
Evergreen Git
git at git.evergreen-ils.org
Wed Jun 10 15:16:30 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, rel_2_7 has been updated
via 08bd7ca10c0650182093041d5102767d59a33953 (commit)
via a6f6e95a6b99dbc3bf42892595a90d81c936cb39 (commit)
via 391ddad07e79ed771babcfa202a5a03e17fd9989 (commit)
via eeec8b1a6904c5e72e161a769a1f53ef16bb78e2 (commit)
from 5b94c682cb8566657c25ed9c5eb21bbc6240ea1e (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 08bd7ca10c0650182093041d5102767d59a33953
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/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
index 2515bf4..0000000
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.drop-acq-audit-fkey.sql
+++ /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;
commit a6f6e95a6b99dbc3bf42892595a90d81c936cb39
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;
commit 391ddad07e79ed771babcfa202a5a03e17fd9989
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 eeec8b1a6904c5e72e161a769a1f53ef16bb78e2
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