From: erickson Date: Mon, 2 Nov 2009 16:31:50 +0000 (+0000) Subject: removed reference to 'percent' on fund allocation. corrected foreign key syntax... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=73f572fd3077e77b01f59a6bcdd05292fd9e4d93;p=evergreen%2Fmasslnc.git removed reference to 'percent' on fund allocation. corrected foreign key syntax for org seting perm git-svn-id: svn://svn.open-ils.org/ILS/trunk@14720 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/200.schema.acq.sql b/Open-ILS/src/sql/Pg/200.schema.acq.sql index 94bbd353d8..85f60f844e 100644 --- a/Open-ILS/src/sql/Pg/200.schema.acq.sql +++ b/Open-ILS/src/sql/Pg/200.schema.acq.sql @@ -133,8 +133,7 @@ CREATE TABLE acq.fund_allocation ( amount NUMERIC NOT NULL, allocator INT NOT NULL REFERENCES actor.usr (id) DEFERRABLE INITIALLY DEFERRED, note TEXT, - create_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(), - CONSTRAINT allocation_amount_or_percent CHECK ((percent IS NULL AND amount IS NOT NULL) OR (percent IS NOT NULL AND amount IS NULL)) + create_time TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW() ); CREATE INDEX fund_alloc_allocator_idx ON acq.fund_allocation ( allocator ); diff --git a/Open-ILS/src/sql/Pg/800.fkeys.sql b/Open-ILS/src/sql/Pg/800.fkeys.sql index 60cf3801b0..c08d933b65 100644 --- a/Open-ILS/src/sql/Pg/800.fkeys.sql +++ b/Open-ILS/src/sql/Pg/800.fkeys.sql @@ -98,6 +98,6 @@ ALTER TABLE action.circulation ADD CONSTRAINT action_circulation_target_copy_fke ALTER TABLE config.billing_type ADD CONSTRAINT config_billing_type_owner_fkey FOREIGN KEY (owner) REFERENCES actor.org_unit (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED; ALTER TABLE config.org_unit_setting_type ADD CONSTRAINT view_perm_fkey FOREIGN KEY (view_perm) REFERENCES permission.perm_list (id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED; -ALTER TABLE config.org_unit_setting_type ADD CONSTRAINT update_perm_fkey FOREIGN KEY (update_perm) REFERENCES permission.perm_list (id) ON DELETE SET NULL CASCADE DEFERRABLE INITIALLY DEFERRED; +ALTER TABLE config.org_unit_setting_type ADD CONSTRAINT update_perm_fkey FOREIGN KEY (update_perm) REFERENCES permission.perm_list (id) DEFERRABLE INITIALLY DEFERRED; COMMIT;