Changeset 444 for trunk/app/config

Show
Ignore:
Timestamp:
05/01/08 23:19:28 (7 months ago)
Author:
aarkerio
Message:

Add new tables for students result

Location:
trunk/app/config/sql/postgresql
Files:
3 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/sql/postgresql/topics.sql

    r436 r444  
    44 message text NOT NULL, 
    55 created timestamp(0) with time zone DEFAULT now() NOT NULL, 
    6  forum_id integer NOT NULL REFERENCES forums(id) ON DELETE CASCADE, 
     6 forum_id int NOT NULL REFERENCES forums(id) ON DELETE CASCADE, 
     7 vclassroom_id int NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, -- just one facility to create student's reports 
    78 user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE, 
    8  status int NOT NULL DEFAULT 1, 
    9  views int NOT NULL DEFAULT 0  -- number of times the topic has been seen 
     9 status smallint NOT NULL DEFAULT 1, 
     10 views smallint NOT NULL DEFAULT 0  -- number of times the topic has been seen 
    1011); 
    1112