removing "profile"... and there was much rejoicing
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Jul 2005 18:04:25 +0000 (18:04 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Jul 2005 18:04:25 +0000 (18:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1282 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/sql/Postgres/005.schema.actors.sql
Open-ILS/src/sql/Postgres/800.fkeys.sql

index c44beed..f29018a 100644 (file)
@@ -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,
index 11912d8..ac93024 100644 (file)
@@ -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;