[open-ils-commits] [GIT] Evergreen ILS branch rel_2_6 updated. 2d25f8ff540f343bfb26920671f2f57e98351057
Evergreen Git
git at git.evergreen-ils.org
Tue Feb 3 16:13:02 EST 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_6 has been updated
via 2d25f8ff540f343bfb26920671f2f57e98351057 (commit)
via b2ca430ca9d61ee3875a90d00453cdd893603c13 (commit)
from c0c7a52ff695b4ba5c998b85e4abe7c535213659 (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 2d25f8ff540f343bfb26920671f2f57e98351057
Author: Ben Shum <bshum at biblio.org>
Date: Tue Feb 3 16:12:14 2015 -0500
LP#1413660: Stamping upgrade script to change z3950 function
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 4405cfc..2e7d76b 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 ('0905', :eg_version); -- gmcharlt/csharp/bshum
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0906', :eg_version); -- berick/bshum
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0906.schema.z39_func_stable.sql b/Open-ILS/src/sql/Pg/upgrade/0906.schema.z39_func_stable.sql
new file mode 100644
index 0000000..f91104c
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/0906.schema.z39_func_stable.sql
@@ -0,0 +1,8 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0906', :eg_version);
+
+ALTER FUNCTION evergreen.z3950_attr_name_is_valid (TEXT) STABLE;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql
deleted file mode 100644
index 31a44d7..0000000
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql
+++ /dev/null
@@ -1,5 +0,0 @@
-BEGIN;
-
-ALTER FUNCTION evergreen.z3950_attr_name_is_valid (TEXT) STABLE;
-
-COMMIT;
commit b2ca430ca9d61ee3875a90d00453cdd893603c13
Author: Bill Erickson <berickxx at gmail.com>
Date: Thu Jan 22 11:57:43 2015 -0500
LP#1413660 Mark 39.50 config function STABLE
Mark SQL function evergreen.z3950_attr_name_is_valid(text) as STABLE
instead of IMMUTABLE, since the output may vary with a single input over
time.
Signed-off-by: Bill Erickson <berickxx at gmail.com>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 7f4aa2d..4405cfc 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -1050,7 +1050,7 @@ ALTER TABLE config.best_hold_order ADD CHECK ((
CREATE OR REPLACE FUNCTION
evergreen.z3950_attr_name_is_valid(TEXT) RETURNS BOOLEAN AS $func$
SELECT EXISTS (SELECT 1 FROM config.z3950_attr WHERE name = $1);
-$func$ LANGUAGE SQL STRICT IMMUTABLE;
+$func$ LANGUAGE SQL STRICT STABLE;
COMMENT ON FUNCTION evergreen.z3950_attr_name_is_valid(TEXT) IS $$
Results in TRUE if there exists at least one config.z3950_attr
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql
new file mode 100644
index 0000000..31a44d7
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.z39_func_stable.sql
@@ -0,0 +1,5 @@
+BEGIN;
+
+ALTER FUNCTION evergreen.z3950_attr_name_is_valid (TEXT) STABLE;
+
+COMMIT;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/002.schema.config.sql | 4 ++--
.../sql/Pg/upgrade/0906.schema.z39_func_stable.sql | 8 ++++++++
2 files changed, 10 insertions(+), 2 deletions(-)
create mode 100644 Open-ILS/src/sql/Pg/upgrade/0906.schema.z39_func_stable.sql
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list