From: erickson Date: Thu, 14 Apr 2011 16:50:20 +0000 (+0000) Subject: upgrade script for consistency w/ schema change in r20073 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=09c2a53ae08712ddaa9fa8e274613e6e36471cc8;p=contrib%2FConifer.git upgrade script for consistency w/ schema change in r20073 git-svn-id: svn://svn.open-ils.org/ILS/trunk@20079 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index ab8b4d6973..4b6edac266 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -70,7 +70,7 @@ CREATE TABLE config.upgrade_log ( install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); -INSERT INTO config.upgrade_log (version) VALUES ('0515'); -- miker +INSERT INTO config.upgrade_log (version) VALUES ('0516'); -- berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/0516.schema.acq-marc-extract.sql b/Open-ILS/src/sql/Pg/upgrade/0516.schema.acq-marc-extract.sql new file mode 100644 index 0000000000..d49335ee28 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0516.schema.acq-marc-extract.sql @@ -0,0 +1,9 @@ +BEGIN; + +INSERT INTO config.upgrade_log (version) VALUES ('0516'); + +CREATE OR REPLACE FUNCTION public.extract_acq_marc_field ( BIGINT, TEXT, TEXT) RETURNS TEXT AS $$ + SELECT extract_marc_field('acq.lineitem', $1, $2, $3); +$$ LANGUAGE SQL; + +COMMIT;