~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to userdb/users.sql

  • Committer: mattgiuca
  • Date: 2008-07-21 03:12:22 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:916
userdb: Added constraints UNIQUE and NOT NULL to subjects.subj_short_name.
    Rationale: Needs to be unique (since it will be used as a directory name),
    and rather important (so not null).

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    subjectid       SERIAL PRIMARY KEY NOT NULL,
24
24
    subj_code       VARCHAR UNIQUE NOT NULL,
25
25
    subj_name       VARCHAR NOT NULL,
26
 
    subj_short_name VARCHAR,    -- may be null
 
26
    subj_short_name VARCHAR UNIQUE NOT NULL,
27
27
    url             VARCHAR
28
28
);
29
29