[open-ils-commits] r19775 - branches/rel_2_0/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 16 12:08:54 EDT 2011
Author: miker
Date: 2011-03-16 12:08:51 -0400 (Wed, 16 Mar 2011)
New Revision: 19775
Modified:
branches/rel_2_0/Open-ILS/src/sql/Pg/2.0.3-2.0.4-upgrade-db.sql
Log:
Update the upgrade script whith version and additional upgrade bits
Modified: branches/rel_2_0/Open-ILS/src/sql/Pg/2.0.3-2.0.4-upgrade-db.sql
===================================================================
--- branches/rel_2_0/Open-ILS/src/sql/Pg/2.0.3-2.0.4-upgrade-db.sql 2011-03-16 16:07:02 UTC (rev 19774)
+++ branches/rel_2_0/Open-ILS/src/sql/Pg/2.0.3-2.0.4-upgrade-db.sql 2011-03-16 16:08:51 UTC (rev 19775)
@@ -1,5 +1,6 @@
BEGIN;
+INSERT INTO config.upgrade_log (version) VALUES ('2.0.4');
INSERT INTO config.upgrade_log (version) VALUES ('0498');
-- Rather than polluting the public schema with general Evergreen
@@ -161,4 +162,14 @@
UPDATE asset.call_number SET id = id;
+INSERT INTO config.upgrade_log (version) VALUES ('0500');
+
+CREATE OR REPLACE FUNCTION evergreen.change_db_setting(setting_name TEXT, settings TEXT[]) RETURNS VOID AS $$
+BEGIN
+EXECUTE 'ALTER DATABASE ' || quote_ident(current_database()) || ' SET ' || quote_ident(setting_name) || ' = ' || array_to_string(settings, ',');
+END;
+$$ LANGUAGE plpgsql;
+
+SELECT evergreen.change_db_setting('search_path', ARRAY['public','pg_catalog']);
+
COMMIT;
More information about the open-ils-commits
mailing list