From: miker Date: Wed, 18 Mar 2009 15:09:51 +0000 (+0000) Subject: upgrade sql scripts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=66ab8a5f895cd0ad5bcbfd36d14586df454af00b;p=Evergreen.git upgrade sql scripts git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@12576 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/1.4.0.1-1.4.0.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/1.4.0.1-1.4.0.2-upgrade-db.sql new file mode 100644 index 0000000000..419e8715ec --- /dev/null +++ b/Open-ILS/src/sql/Pg/1.4.0.1-1.4.0.2-upgrade-db.sql @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2009 Equinox Software, Inc. + * Mike Rylander + * + * 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; + diff --git a/Open-ILS/src/sql/Pg/1.4.0.2-1.4.0.3-upgrade-db.sql b/Open-ILS/src/sql/Pg/1.4.0.2-1.4.0.3-upgrade-db.sql new file mode 100644 index 0000000000..22c6aa8538 --- /dev/null +++ b/Open-ILS/src/sql/Pg/1.4.0.2-1.4.0.3-upgrade-db.sql @@ -0,0 +1,19 @@ +/* + * Copyright (C) 2009 Equinox Software, Inc. + * Mike Rylander + * + * 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'); +