[open-ils-commits] r20079 - in trunk/Open-ILS/src/sql/Pg: . upgrade (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 14 12:50:24 EDT 2011
Author: erickson
Date: 2011-04-14 12:50:20 -0400 (Thu, 14 Apr 2011)
New Revision: 20079
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0516.schema.acq-marc-extract.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
upgrade script for consistency w/ schema change in r20073
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-04-14 16:10:09 UTC (rev 20078)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-04-14 16:50:20 UTC (rev 20079)
@@ -70,7 +70,7 @@
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,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0516.schema.acq-marc-extract.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0516.schema.acq-marc-extract.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0516.schema.acq-marc-extract.sql 2011-04-14 16:50:20 UTC (rev 20079)
@@ -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;
More information about the open-ils-commits
mailing list