[open-ils-commits] r20464 - in trunk/Open-ILS/src/sql/Pg: . upgrade (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri May 13 09:08:01 EDT 2011
Author: gmc
Date: 2011-05-13 09:07:59 -0400 (Fri, 13 May 2011)
New Revision: 20464
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql
Modified:
trunk/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: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-05-12 19:52:47 UTC (rev 20463)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-05-13 13:07:59 UTC (rev 20464)
@@ -86,7 +86,7 @@
BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0530', :eg_version); -- senator, for Niles Ingalls
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0531', :eg_version); -- gmc
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0531.schema.auditor_affixes.sql 2011-05-13 13:07:59 UTC (rev 20464)
@@ -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