<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>
<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"/>
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,
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);
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);
--- /dev/null
+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;
+