[open-ils-commits] r16330 - 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 28 10:41:05 EDT 2010
Author: scottmk
Date: 2010-04-28 10:41:03 -0400 (Wed, 28 Apr 2010)
New Revision: 16330
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0242.schema.acq-cancel-reason-keep-debits.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
trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
Add keep_debits column to acq.cancel_reason.
Add a row for delivered_but_lost, with keep_debits = TRUE.
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/0242.schema.acq-cancel-reason-keep-debits.sql
M Open-ILS/src/sql/Pg/950.data.seed-values.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-28 13:02:28 UTC (rev 16329)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-04-28 14:41:03 UTC (rev 16330)
@@ -5303,6 +5303,7 @@
<field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
<field reporter:label="Label" name="label" reporter:datatype="text"/>
<field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Keep Debits?" name="keep_debits" reporter:datatype="bool"/>
</fields>
<links>
<link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-28 13:02:28 UTC (rev 16329)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-28 14:41:03 UTC (rev 16330)
@@ -60,7 +60,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0241'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0242'); -- 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-28 13:02:28 UTC (rev 16329)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-28 14:41:03 UTC (rev 16330)
@@ -359,6 +359,7 @@
DEFERRABLE INITIALLY DEFERRED,
label TEXT NOT NULL,
description TEXT NOT NULL,
+ keep_debits BOOL NOT NULL DEFAULT FALSE,
CONSTRAINT acq_cancel_reason_one_per_org_unit UNIQUE( org_unit, label )
);
Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-04-28 13:02:28 UTC (rev 16329)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql 2010-04-28 14:41:03 UTC (rev 16330)
@@ -4683,8 +4683,10 @@
1, 1, 'invalid_isbn', oils_i18n_gettext( 1, 'ISBN is unrecognizable', 'acqcr', 'label' ));
INSERT INTO acq.cancel_reason ( id, org_unit, label, description ) VALUES (
2, 1, 'postpone', oils_i18n_gettext( 2, 'Title has been postponed', 'acqcr', 'label' ));
+INSERT INTO acq.cancel_reason ( id, org_unit, label, description, keep_debits ) VALUES (
+ 3, 1, 'delivered_but_lost',
+ oils_i18n_gettext( 2, 'Delivered but not received; presumed lost', 'acqcr', 'label' ), TRUE );
-
INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
VALUES (
'circ.holds.hold_has_copy_at.alert',
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0242.schema.acq-cancel-reason-keep-debits.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0242.schema.acq-cancel-reason-keep-debits.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0242.schema.acq-cancel-reason-keep-debits.sql 2010-04-28 14:41:03 UTC (rev 16330)
@@ -0,0 +1,12 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0242'); -- Scott McKellar
+
+ALTER TABLE acq.cancel_reason
+ ADD COLUMN keep_debits BOOL NOT NULL DEFAULT FALSE;
+
+INSERT INTO acq.cancel_reason ( id, org_unit, label, description, keep_debits ) VALUES (
+ 3, 1, 'delivered_but_lost',
+ oils_i18n_gettext( 2, 'Delivered but not received; presumed lost', 'acqcr', 'label' ), TRUE );
+
+COMMIT;
More information about the open-ils-commits
mailing list