From: scottmk Date: Tue, 21 Sep 2010 18:16:51 +0000 (+0000) Subject: Don't update history tables to fill in new NOT NULL columns X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9adf0cbb15d3e94006f516c9cb98ffeff5b79fb5;p=evergreen%2Fmasslnc.git Don't update history tables to fill in new NOT NULL columns M Open-ILS/src/sql/Pg/upgrade/0413.schema.upgrade-auditor-tables.sql git-svn-id: svn://svn.open-ils.org/ILS/trunk@17873 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/upgrade/0413.schema.upgrade-auditor-tables.sql b/Open-ILS/src/sql/Pg/upgrade/0413.schema.upgrade-auditor-tables.sql index c152fa8fb9..7a786da508 100644 --- a/Open-ILS/src/sql/Pg/upgrade/0413.schema.upgrade-auditor-tables.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0413.schema.upgrade-auditor-tables.sql @@ -5,13 +5,6 @@ BEGIN; INSERT INTO config.upgrade_log (version) VALUES ('0413'); -- Scott McKellar -UPDATE auditor.actor_org_unit_history -SET fiscal_calendar = 1 -WHERE fiscal_calendar IS NULL; - -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' ); @@ -23,24 +16,10 @@ DROP VIEW auditor.actor_usr_lifecycle; SELECT auditor.create_auditor_lifecycle( 'actor', 'usr' ); -UPDATE auditor.asset_call_number_history -SET label_class = 1 -WHERE label_class IS NULL; - -ALTER TABLE auditor.asset_call_number_history - ALTER COLUMN label_class SET NOT NULL; - DROP VIEW auditor.asset_call_number_lifecycle; SELECT auditor.create_auditor_lifecycle( 'asset', 'call_number' ); -UPDATE auditor.asset_copy_history -SET floating = false -WHERE floating IS NULL; - -ALTER TABLE auditor.asset_copy_history - ALTER COLUMN floating SET NOT NULL; - DROP VIEW auditor.asset_copy_lifecycle; SELECT auditor.create_auditor_lifecycle( 'asset', 'copy' );