[open-ils-commits] r12576 - branches/rel_1_4_0/Open-ILS/src/sql/Pg (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Mar 18 11:09:53 EDT 2009


Author: miker
Date: 2009-03-18 11:09:51 -0400 (Wed, 18 Mar 2009)
New Revision: 12576

Added:
   branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.1-1.4.0.2-upgrade-db.sql
   branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.2-1.4.0.3-upgrade-db.sql
Log:
upgrade sql scripts

Added: branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.1-1.4.0.2-upgrade-db.sql
===================================================================
--- branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.1-1.4.0.2-upgrade-db.sql	                        (rev 0)
+++ branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.1-1.4.0.2-upgrade-db.sql	2009-03-18 15:09:51 UTC (rev 12576)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2009  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+
+INSERT INTO config.upgrade_log (version) VALUES ('1.4.0.2');
+
+-- In case this was an earlier 1.2 upgrade...
+BEGIN;
+
+CREATE TABLE config.bib_level_map (
+        code    TEXT    PRIMARY KEY,
+        value   TEXT    NOT NULL
+);
+INSERT INTO config.bib_level_map (code, value) VALUES ('a', oils_i18n_gettext('a', 'Monographic component part', 'cblvl', 'value'));
+INSERT INTO config.bib_level_map (code, value) VALUES ('b', oils_i18n_gettext('b', 'Serial component part', 'cblvl', 'value'));
+INSERT INTO config.bib_level_map (code, value) VALUES ('c', oils_i18n_gettext('c', 'Collection', 'cblvl', 'value'));
+INSERT INTO config.bib_level_map (code, value) VALUES ('d', oils_i18n_gettext('d', 'Subunit', 'cblvl', 'value'));
+INSERT INTO config.bib_level_map (code, value) VALUES ('i', oils_i18n_gettext('i', 'Integrating resource', 'cblvl', 'value'));
+INSERT INTO config.bib_level_map (code, value) VALUES ('m', oils_i18n_gettext('m', 'Monograph/Item', 'cblvl', 'value'));
+INSERT INTO config.bib_level_map (code, value) VALUES ('s', oils_i18n_gettext('s', 'Serial', 'cblvl', 'value'));
+
+COMMIT;
+

Added: branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.2-1.4.0.3-upgrade-db.sql
===================================================================
--- branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.2-1.4.0.3-upgrade-db.sql	                        (rev 0)
+++ branches/rel_1_4_0/Open-ILS/src/sql/Pg/1.4.0.2-1.4.0.3-upgrade-db.sql	2009-03-18 15:09:51 UTC (rev 12576)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2009  Equinox Software, Inc.
+ * Mike Rylander <miker at esilibrary.com>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ */
+
+
+INSERT INTO config.upgrade_log (version) VALUES ('1.4.0.3');
+



More information about the open-ils-commits mailing list