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

« back to all changes in this revision

Viewing changes to userdb/users.sql

  • Committer: mattgiuca
  • Date: 2008-06-16 12:31:27 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:780
dispatch/login.py: When displaying the login page, returns a 200, not a 403
    Forbidden.
    This is because "Forbidden" has the wrong semantic - it means "you will
    never get in here even if you auth", whereas we want to present the
    opportunity to auth.
    Some user agents interpret a 403 as defeat, and don't even present the
    page body.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    settings    VARCHAR
20
20
);
21
21
 
22
 
CREATE TABLE subject (
23
 
    subjectid       SERIAL PRIMARY KEY NOT NULL,
24
 
    subj_code       VARCHAR UNIQUE NOT NULL,
25
 
    subj_name       VARCHAR NOT NULL,
26
 
    subj_short_name VARCHAR,    -- may be null
27
 
    url             VARCHAR
28
 
);
29
 
 
30
22
CREATE TABLE offering (
31
23
    offeringid  SERIAL PRIMARY KEY NOT NULL,
32
 
    subject     INT4 REFERENCES subject (subjectid) NOT NULL,
 
24
    subj_name   VARCHAR NOT NULL,
 
25
    subj_code   VARCHAR NOT NULL,
33
26
    year        CHAR(4) NOT NULL,
34
 
    semester    CHAR(1) NOT NULL
 
27
    semester    CHAR(1) NOT NULL,
 
28
    url         VARCHAR
35
29
);
36
30
 
37
31
CREATE TABLE project (