From: scottmk Date: Mon, 2 Nov 2009 22:08:15 +0000 (+0000) Subject: Add mint_condition column to asset.copy, auditor.asset_copy_history, X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=10664b5ebf47b6dc9d7c24d69523e4fec48621bc;p=evergreen%2Fbjwebb.git Add mint_condition column to asset.copy, auditor.asset_copy_history, and action.hold_request. git-svn-id: svn://svn.open-ils.org/ILS/trunk@14723 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 43ef7e42e..09d4cb5d7 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -2747,6 +2747,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + @@ -3329,6 +3330,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index fefabc776..70d411916 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -51,7 +51,7 @@ CREATE TABLE config.upgrade_log ( 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, diff --git a/Open-ILS/src/sql/Pg/040.schema.asset.sql b/Open-ILS/src/sql/Pg/040.schema.asset.sql index a5d168d5e..6f9034c49 100644 --- a/Open-ILS/src/sql/Pg/040.schema.asset.sql +++ b/Open-ILS/src/sql/Pg/040.schema.asset.sql @@ -76,7 +76,8 @@ CREATE TABLE asset.copy ( 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); diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql index 91bd55f48..21a5a9adc 100644 --- a/Open-ILS/src/sql/Pg/090.schema.action.sql +++ b/Open-ILS/src/sql/Pg/090.schema.action.sql @@ -354,7 +354,8 @@ CREATE TABLE action.hold_request ( 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); diff --git a/Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.sql b/Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.sql new file mode 100644 index 000000000..1c7594d1d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.sql @@ -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; +