Changeset 1130


Ignore:
Timestamp:
Sep 3, 2008 8:36:02 AM (5 years ago)
Author:
dkg
Message:

recording individual interests, and person creation timestamps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/sql/db.sql

    r968 r1130  
    10121012CREATE UNIQUE INDEX person_email_ci_unique ON person (lower(email)); 
    10131013ALTER TABLE person DROP CONSTRAINT person_email_unique; 
     1014 
     1015-- record what date the person was created: 
     1016 
     1017ALTER TABLE person ADD COLUMN created_on timestamp with time zone;  
     1018UPDATE person SET created_on = now(); 
     1019ALTER TABLE person ALTER COLUMN created_on SET DEFAULT now(); 
     1020ALTER TABLE person ALTER COLUMN created_on SET NOT NULL; 
     1021 
     1022-- allow recording of a person's subject interests independently of 
     1023-- their workshop attendance: 
     1024 
     1025CREATE TABLE person_interest (person_id integer NOT NULL REFERENCES 
     1026person(id), category_id integer NOT NULL REFERENCES category(id)); 
Note: See TracChangeset for help on using the changeset viewer.