[open-ils-commits] r14723 - 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
Mon Nov 2 17:08:21 EST 2009


Author: scottmk
Date: 2009-11-02 17:08:15 -0500 (Mon, 02 Nov 2009)
New Revision: 14723

Added:
   trunk/Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.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/040.schema.asset.sql
   trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
Log:
Add mint_condition column to asset.copy, auditor.asset_copy_history,
and action.hold_request.



Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml	2009-11-02 21:44:01 UTC (rev 14722)
+++ trunk/Open-ILS/examples/fm_IDL.xml	2009-11-02 22:08:15 UTC (rev 14723)
@@ -2747,6 +2747,7 @@
 			<field reporter:label="Cancelation cause" name="cancel_cause" reporter:datatype="link" />
 			<field reporter:label="Cancelation note" name="cancel_note" reporter:datatype="text" />
 			<field reporter:label="Top of Queue" name="cut_in_line" reporter:datatype="bool" />
+			<field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool" />
 			<field reporter:label="Notes" name="notes" reporter:datatype="link" oils_persist:virtual="true"/>
 		</fields>
 		<links>
@@ -3329,6 +3330,7 @@
 			<field reporter:label="Is Reference" name="ref" reporter:datatype="bool"/>
 			<field reporter:label="Copy Status" name="status" reporter:datatype="link"/>
 			<field reporter:label="Copy Status Changed Time" name="status_changed_time" reporter:datatype="timestamp"/>
+			<field reporter:label="Is Mint Condition" name="mint_condition" reporter:datatype="bool"/>
 			<field reporter:label="Copy Notes" name="notes" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Stat-Cat entry maps" name="stat_cat_entry_copy_maps" oils_persist:virtual="true" reporter:datatype="link"/>
 			<field reporter:label="Circulations" name="circulations" oils_persist:virtual="true" reporter:datatype="link"/>

Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2009-11-02 21:44:01 UTC (rev 14722)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2009-11-02 22:08:15 UTC (rev 14723)
@@ -51,7 +51,7 @@
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0064'); -- berick
+INSERT INTO config.upgrade_log (version) VALUES ('0065'); -- Scott McKellar
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,

Modified: trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql	2009-11-02 21:44:01 UTC (rev 14722)
+++ trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql	2009-11-02 22:08:15 UTC (rev 14723)
@@ -76,7 +76,8 @@
 	opac_visible	BOOL				NOT NULL DEFAULT TRUE,
 	deleted		BOOL				NOT NULL DEFAULT FALSE,
 	dummy_isbn      TEXT,
-	status_changed_time TIMESTAMP WITH TIME ZONE
+	status_changed_time TIMESTAMP WITH TIME ZONE,
+	mint_condition      BOOL        NOT NULL DEFAULT FALSE
 );
 CREATE UNIQUE INDEX copy_barcode_key ON asset.copy (barcode) WHERE deleted IS FALSE;
 CREATE INDEX cp_cn_idx ON asset.copy (call_number);

Modified: trunk/Open-ILS/src/sql/Pg/090.schema.action.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/090.schema.action.sql	2009-11-02 21:44:01 UTC (rev 14722)
+++ trunk/Open-ILS/src/sql/Pg/090.schema.action.sql	2009-11-02 22:08:15 UTC (rev 14723)
@@ -354,7 +354,8 @@
 	frozen			BOOL				NOT NULL DEFAULT FALSE,
 	thaw_date		TIMESTAMP WITH TIME ZONE,
 	shelf_time		TIMESTAMP WITH TIME ZONE,
-    cut_in_line     BOOL
+    cut_in_line     BOOL,
+	mint_condition  BOOL NOT NULL DEFAULT FALSE
 );
 
 CREATE INDEX hold_request_target_idx ON action.hold_request (target);

Added: trunk/Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.sql	2009-11-02 22:08:15 UTC (rev 14723)
@@ -0,0 +1,15 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0065');
+
+ALTER TABLE asset.copy
+ADD COLUMN mint_condition boolean NOT NULL DEFAULT FALSE;
+
+ALTER TABLE action.hold_request
+ADD COLUMN mint_condition boolean NOT NULL DEFAULT FALSE;
+
+ALTER TABLE auditor.asset_copy_history
+ADD COLUMN mint_condition boolean NOT NULL DEFAULT FALSE;
+
+COMMIT;
+



More information about the open-ils-commits mailing list