From: Chris Sharp Date: Fri, 17 Aug 2012 14:13:16 +0000 (-0400) Subject: PINES doesn't have auditor.serial_unit_history, so we create it X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ec254e0b1aa8a0eed828ab3de7b355938bfe1e44;p=evergreen%2Fpines.git PINES doesn't have auditor.serial_unit_history, so we create it --- diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql index 8c88ab39cc..ba089c20a9 100644 --- a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql @@ -538,8 +538,13 @@ ALTER TABLE asset.copy ALTER TABLE auditor.asset_copy_history ADD COLUMN active_date TIMESTAMP WITH TIME ZONE; -ALTER TABLE auditor.serial_unit_history - ADD COLUMN active_date TIMESTAMP WITH TIME ZONE; +-- PINES doesn't have this table, so we create it from scratch +-- ALTER TABLE auditor.serial_unit_history +-- ADD COLUMN active_date TIMESTAMP WITH TIME ZONE; + +SELECT auditor.create_auditor ( 'serial', 'unit' ); +CREATE INDEX aud_serial_unit_hist_creator_idx ON auditor.serial_unit_history ( creator ); +CREATE INDEX aud_serial_unit_hist_editor_idx ON auditor.serial_unit_history ( editor ); ALTER TABLE config.copy_status ADD COLUMN copy_active BOOL NOT NULL DEFAULT FALSE;