[open-ils-commits] r16256 - in trunk/Open-ILS/src/sql/Pg: . upgrade (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Apr 16 14:36:36 EDT 2010
Author: erickson
Date: 2010-04-16 14:36:31 -0400 (Fri, 16 Apr 2010)
New Revision: 16256
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0235.schema.acq-invoice-complete.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
added column to indicate that an invoice is complete/done/closed
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-16 17:31:16 UTC (rev 16255)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-16 18:36:31 UTC (rev 16256)
@@ -60,7 +60,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0234'); -- phasefx
+INSERT INTO config.upgrade_log (version) VALUES ('0235'); -- berick
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-16 17:31:16 UTC (rev 16255)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-16 18:36:31 UTC (rev 16256)
@@ -803,6 +803,7 @@
payment_method TEXT REFERENCES acq.invoice_payment_method (code)
DEFERRABLE INITIALLY DEFERRED,
note TEXT,
+ complete BOOL NOT NULL DEFAULT FALSE,
CONSTRAINT inv_ident_once_per_provider UNIQUE(provider, inv_ident)
);
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0235.schema.acq-invoice-complete.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0235.schema.acq-invoice-complete.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0235.schema.acq-invoice-complete.sql 2010-04-16 18:36:31 UTC (rev 16256)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0235');
+
+ALTER TABLE acq.invoice
+ ADD COLUMN complete BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;
More information about the open-ils-commits
mailing list