[open-ils-commits] [GIT] Evergreen ILS branch master updated. f5436da47ef6d06716a27e44e56067f8572f336e
Evergreen Git
git at git.evergreen-ils.org
Tue Feb 3 16:13:01 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, master has been updated
via f5436da47ef6d06716a27e44e56067f8572f336e (commit)
via 456f88a6277aa648c6d4b06a7c5e0c4f2fdde7ca (commit)
from f108b8d30f778244b4fccb6deb07bb6a1e2fe292 (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 f5436da47ef6d06716a27e44e56067f8572f336e
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 456f88a6277aa648c6d4b06a7c5e0c4f2fdde7ca
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