[open-ils-commits] r16967 - in trunk/Open-ILS/src/sql/Pg: . upgrade (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jul 16 15:55:42 EDT 2010
Author: dbs
Date: 2010-07-16 15:55:37 -0400 (Fri, 16 Jul 2010)
New Revision: 16967
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0340.schema.serials_remove_owner.sql
Log:
It is important to update the upgrade_log to prevent collisions and such.
Updating config.upgrade_log to 0340.
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-16 19:02:37 UTC (rev 16966)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-07-16 19:55:37 UTC (rev 16967)
@@ -68,7 +68,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0339'); -- dbs
+INSERT INTO config.upgrade_log (version) VALUES ('0340'); -- dbs
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0340.schema.serials_remove_owner.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0340.schema.serials_remove_owner.sql 2010-07-16 19:02:37 UTC (rev 16966)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0340.schema.serials_remove_owner.sql 2010-07-16 19:55:37 UTC (rev 16967)
@@ -2,6 +2,8 @@
-- Adjust the table and affected functions accordingly
BEGIN;
+INSERT INTO config.upgrade_log (version) VALUES ('0340'); -- dbs
+
ALTER TABLE serial.record_entry DROP COLUMN owner;
CREATE OR REPLACE FUNCTION maintain_control_numbers() RETURNS TRIGGER AS $func$
More information about the open-ils-commits
mailing list