From: miker Date: Tue, 19 Jul 2005 18:04:25 +0000 (+0000) Subject: removing "profile"... and there was much rejoicing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d37c97cfa2afb00f3b5c74aa99a02ce6ea9a2165;p=Evergreen.git removing "profile"... and there was much rejoicing git-svn-id: svn://svn.open-ils.org/ILS/trunk@1282 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Postgres/005.schema.actors.sql b/Open-ILS/src/sql/Postgres/005.schema.actors.sql index c44beedfb8..f29018acf9 100644 --- a/Open-ILS/src/sql/Postgres/005.schema.actors.sql +++ b/Open-ILS/src/sql/Postgres/005.schema.actors.sql @@ -168,15 +168,6 @@ COMMENT ON TABLE actor.usr_setting IS $$ */ $$; - -CREATE TABLE actor.profile ( - id SERIAL PRIMARY KEY, - name TEXT NOT NULL UNIQUE -); -INSERT INTO actor.profile (name) VALUES ('ADULT'); -INSERT INTO actor.profile (name) VALUES ('JUVENILE'); -INSERT INTO actor.profile (name) VALUES ('STAFF'); - CREATE TABLE actor.stat_cat ( id SERIAL PRIMARY KEY, owner INT NOT NULL, @@ -354,13 +345,6 @@ CREATE INDEX actor_org_unit_holds_address_idx ON actor.org_unit (holds_address); INSERT INTO actor.org_unit (parent_ou, ou_type, shortname, name) VALUES (NULL, 1, 'PINES', 'Georgia PINES Consortium'); -CREATE TABLE actor.usr_access_entry ( - id BIGSERIAL PRIMARY KEY, - usr INT NOT NULL REFERENCES actor.usr (id), - org_unit INT NOT NULL REFERENCES actor.org_unit (id), - CONSTRAINT usr_once_per_ou UNIQUE (usr,org_unit) -); - CREATE TABLE actor.usr_address ( id SERIAL PRIMARY KEY, valid BOOL NOT NULL DEFAULT TRUE, diff --git a/Open-ILS/src/sql/Postgres/800.fkeys.sql b/Open-ILS/src/sql/Postgres/800.fkeys.sql index 11912d8be0..ac93024f2f 100644 --- a/Open-ILS/src/sql/Postgres/800.fkeys.sql +++ b/Open-ILS/src/sql/Postgres/800.fkeys.sql @@ -1,6 +1,5 @@ BEGIN; -ALTER TABLE actor.usr ADD CONSTRAINT actor_usr_profile_fkey FOREIGN KEY (profile) REFERENCES actor.profile (id) DEFERRABLE INITIALLY DEFERRED; ALTER TABLE actor.usr ADD CONSTRAINT actor_usr_mailing_address_fkey FOREIGN KEY (mailing_address) REFERENCES actor.usr_address (id) DEFERRABLE INITIALLY DEFERRED; ALTER TABLE actor.usr ADD CONSTRAINT actor_usr_billining_address_fkey FOREIGN KEY (billing_address) REFERENCES actor.usr_address (id) DEFERRABLE INITIALLY DEFERRED; ALTER TABLE actor.usr ADD CONSTRAINT actor_usr_home_ou_fkey FOREIGN KEY (home_ou) REFERENCES actor.org_unit (id) DEFERRABLE INITIALLY DEFERRED;