Changeset 395 for trunk/app/config
- Timestamp:
- 04/14/08 10:20:01 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/config/sql/karamelo_postgres.sql (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/karamelo_postgres.sql
r386 r395 318 318 "created" timestamp(0) with time zone DEFAULT now() NOT NULL, 319 319 "status" smallint DEFAULT 0 NOT NULL, 320 "user_id" int egerNOT NULL REFERENCES users(id) ON DELETE CASCADE,321 "ecourse_id" int egerNOT NULL REFERENCES ecourses(id) ON DELETE CASCADE,322 "secret" varchar(6), -- secret ocode to allow students register by themselves323 "access" smallint NOT NULL DEFAULT 0 320 "user_id" int NOT NULL REFERENCES users(id) ON DELETE CASCADE, 321 "ecourse_id" int NOT NULL REFERENCES ecourses(id) ON DELETE CASCADE, 322 "secret" varchar(6), -- secret code to allow students register by themselves 323 "access" smallint NOT NULL DEFAULT 0 -- public / only with code 324 324 ); 325 325 … … 569 569 CREATE TABLE "tests_vclassrooms" ( 570 570 "id" serial PRIMARY KEY, 571 "test_id" int NOT NULL REFERENCES tests(id) ,572 "vclassroom_id" int NOT NULL REFERENCES vclassrooms(id) ,571 "test_id" int NOT NULL REFERENCES tests(id) ON DELETE CASCADE, 572 "vclassroom_id" int NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, 573 573 UNIQUE ("test_id", "vclassroom_id") 574 574 );
