[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. 6120ed55b4f9939e8a210980a46af1dd3bba87ce
Evergreen Git
git at git.evergreen-ils.org
Thu Nov 9 10:58:41 EST 2017
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_3_0 has been updated
via 6120ed55b4f9939e8a210980a46af1dd3bba87ce (commit)
via 1bff2b42413d1fb771fed1d4d1dca920d76b5a3a (commit)
from ddc2021006cce2123085eab352d878fe1e812469 (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 6120ed55b4f9939e8a210980a46af1dd3bba87ce
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date: Thu Nov 9 11:17:44 2017 -0500
LP#1731281: stamp database update
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 83c9c48..d821d84 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -92,7 +92,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 ('1081', :eg_version); -- jboyer/gmcharlt
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1082', :eg_version); -- jboyer/gmcharlt
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1731281-acvac-cleanup.sql b/Open-ILS/src/sql/Pg/upgrade/1082.data.lp1731281-acvac-cleanup.sql
similarity index 59%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1731281-acvac-cleanup.sql
rename to Open-ILS/src/sql/Pg/upgrade/1082.data.lp1731281-acvac-cleanup.sql
index e7bd8f9..67156d9 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1731281-acvac-cleanup.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1082.data.lp1731281-acvac-cleanup.sql
@@ -1,6 +1,6 @@
BEGIN;
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('1082', :eg_version); -- jboyer/gmcharlt
DELETE FROM asset.copy_vis_attr_cache WHERE target_copy IN (SELECT id FROM asset.copy WHERE deleted);
commit 1bff2b42413d1fb771fed1d4d1dca920d76b5a3a
Author: Jason Boyer <JBoyer at library.in.gov>
Date: Thu Nov 9 09:55:42 2017 -0500
LP1731281: Remove Deleted Items From acvac Table
The script that created the acvac table accidentally
included entries for deleted items which leads to confusion
when titles the library no longer owns are displayed as
available again, even though no copies appear on the record
detail page. This upgrade script removes any that are left
there.
Signed-off-by: Jason Boyer <JBoyer at library.in.gov>
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1731281-acvac-cleanup.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1731281-acvac-cleanup.sql
new file mode 100644
index 0000000..e7bd8f9
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.lp1731281-acvac-cleanup.sql
@@ -0,0 +1,7 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+DELETE FROM asset.copy_vis_attr_cache WHERE target_copy IN (SELECT id FROM asset.copy WHERE deleted);
+
+COMMIT;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +-
.../upgrade/1082.data.lp1731281-acvac-cleanup.sql | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
create mode 100644 Open-ILS/src/sql/Pg/upgrade/1082.data.lp1731281-acvac-cleanup.sql
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list