[open-ils-commits] r16153 - in trunk/Open-ILS: examples src/sql/Pg src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 7 10:35:11 EDT 2010
Author: scottmk
Date: 2010-04-07 10:35:09 -0400 (Wed, 07 Apr 2010)
New Revision: 16153
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
Add boolean column "prorate" to acq.invoice_item_type.
M Open-ILS/src/sql/Pg/200.schema.acq.sql
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-04-07 14:08:43 UTC (rev 16152)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-04-07 14:35:09 UTC (rev 16153)
@@ -874,6 +874,7 @@
<fields oils_persist:primary="code">
<field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
<field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+ <field reporter:label="Prorate?" name="prorate" reporter:datatype="bool"/>
</fields>
<links/>
<permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-07 14:08:43 UTC (rev 16152)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-07 14:35:09 UTC (rev 16153)
@@ -60,7 +60,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0227'); -- phasefx
+INSERT INTO config.upgrade_log (version) VALUES ('0228'); -- Scott McKellar
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-07 14:08:43 UTC (rev 16152)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-07 14:35:09 UTC (rev 16153)
@@ -811,7 +811,8 @@
CREATE TABLE acq.invoice_item_type (
code TEXT PRIMARY KEY,
- name TEXT NOT NULL -- i18n-ize
+ name TEXT NOT NULL, -- i18n-ize
+ prorate BOOL NOT NULL DEFAULT FALSE
);
CREATE TABLE acq.invoice_item ( -- for invoice-only debits: taxes/fees/non-bib items/etc
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql 2010-04-07 14:35:09 UTC (rev 16153)
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0228'); -- Scott McKellar
+
+ALTER TABLE acq.invoice_item_type
+ ADD COLUMN prorate BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;
More information about the open-ils-commits
mailing list