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
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16153
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<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">
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,
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
--- /dev/null
+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;