Add mint_condition column to asset.copy, auditor.asset_copy_history,
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Nov 2009 22:08:15 +0000 (22:08 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 2 Nov 2009 22:08:15 +0000 (22:08 +0000)
and action.hold_request.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@14723 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/040.schema.asset.sql
Open-ILS/src/sql/Pg/090.schema.action.sql
Open-ILS/src/sql/Pg/upgrade/0065.schema.mint_condition.sql [new file with mode: 0644]

index 43ef7e4..09d4cb5 100644 (file)
@@ -2747,6 +2747,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                        <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"/>
index fefabc7..70d4119 100644 (file)
@@ -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,
index a5d168d..6f9034c 100644 (file)
@@ -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);
index 91bd55f..21a5a9a 100644 (file)
@@ -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 (file)
index 0000000..1c7594d
--- /dev/null
@@ -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;
+