[open-ils-commits] r20465 - in branches/rel_2_1/Open-ILS/src/sql/Pg: . upgrade (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri May 13 09:09:55 EDT 2011
Author: gmc
Date: 2011-05-13 09:09:54 -0400 (Fri, 13 May 2011)
New Revision: 20465
Added:
branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql
Modified:
branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
add affix columns to acn auditor table
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Modified: branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-05-13 13:07:59 UTC (rev 20464)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-05-13 13:09:54 UTC (rev 20465)
@@ -57,7 +57,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0530'); -- senator, for Niles Ingalls
+INSERT INTO config.upgrade_log (version) VALUES ('0531'); -- gmc
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Added: branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql
===================================================================
--- branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql (rev 0)
+++ branches/rel_2_1/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql 2011-05-13 13:09:54 UTC (rev 20465)
@@ -0,0 +1,13 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0531'); --gmc
+
+ALTER TABLE auditor.asset_call_number_history
+ ADD COLUMN prefix INT NOT NULL DEFAULT -1,
+ ADD COLUMN suffix INT NOT NULL DEFAULT -1;
+
+ALTER TABLE auditor.asset_call_number_history
+ ALTER COLUMN prefix DROP DEFAULT,
+ ALTER COLUMN suffix DROP DEFAULT;
+
+COMMIT;
More information about the open-ils-commits
mailing list