(35, 'pickup_lib')
;
-INSERT INTO action_trigger.validator (module, description) VALUES (
- 'HoldIsCancelled',
- oils_i18n_gettext(
- 'HoldIsCancelled',
- 'Check whether a hold request is cancelled.',
- 'atval',
- 'description'
- )
-);
-
-- Create the query schema, and the tables and views therein
DROP SCHEMA IF EXISTS sql CASCADE;
ALTER TABLE asset.copy ADD COLUMN floating BOOL NOT NULL DEFAULT FALSE;
ALTER TABLE auditor.asset_copy_history ADD COLUMN floating BOOL;
-UPDATE auditor.asset_copy_history
-SET floating = false;
-
-ALTER TABLE auditor.asset_copy_history
- ALTER COLUMN floating SET NOT NULL;
-
DROP INDEX IF EXISTS asset.copy_barcode_key;
CREATE UNIQUE INDEX copy_barcode_key ON asset.copy (barcode) WHERE deleted = FALSE OR deleted IS FALSE;
ALTER TABLE AUDITOR.actor_usr_history ADD COLUMN
claims_never_checked_out_count INT;
-UPDATE auditor.actor_usr_history
-SET claims_never_checked_out_count = 0;
-
-ALTER TABLE AUDITOR.actor_usr_history
- ALTER COLUMN claims_never_checked_out_count SET NOT NULL;
-
DROP VIEW auditor.actor_usr_lifecycle;
SELECT auditor.create_auditor_lifecycle( 'actor', 'usr' );
ALTER TABLE auditor.actor_org_unit_history
ADD COLUMN fiscal_calendar INT;
-UPDATE auditor.actor_org_unit_history
-SET fiscal_calendar = 1;
-
-ALTER TABLE auditor.actor_org_unit_history
- ALTER COLUMN fiscal_calendar SET NOT NULL;
-
DROP VIEW auditor.actor_org_unit_lifecycle;
SELECT auditor.create_auditor_lifecycle( 'actor', 'org_unit' );
ALTER TABLE auditor.asset_call_number_history
ADD COLUMN label_class BIGINT;
-UPDATE auditor.asset_call_number_history
-SET label_class = 1;
-
-ALTER TABLE auditor.asset_call_number_history
- ALTER COLUMN label_class SET NOT NULL;
-
ALTER TABLE auditor.asset_call_number_history
ADD COLUMN label_sortkey TEXT;