[open-ils-commits] [GIT] Evergreen ILS branch rel_2_7 updated. 7b12a7d82b43afea12f4dc8ac82a462ff477e637
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_7 has been updated
via 7b12a7d82b43afea12f4dc8ac82a462ff477e637 (commit)
via 0f879ab3bb04127df2ff43526b5babfedc5bbbc7 (commit)
from 0bd632658a23b8e544da1982beb75a4acb7f1bef (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 7b12a7d82b43afea12f4dc8ac82a462ff477e637
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 0f879ab3bb04127df2ff43526b5babfedc5bbbc7
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