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;