Changeset 370 for trunk/app/config

Show
Ignore:
Timestamp:
04/06/08 13:50:06 (8 months ago)
Author:
aarkerio
Message:

Wiki starting

Location:
trunk/app/config
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/core.php

    r363 r370  
    1414 * In development mode, you need to click the flash message to continue. 
    1515 */ 
    16     Configure::write('debug', 1); 
     16    Configure::write('debug', 2); 
    1717/** 
    1818 * Application wide charset encoding 
  • trunk/app/config/sql/karamelo_postgres.sql

    r369 r370  
    8787INSERT INTO subjects (code, title) VALUES ('0006', 'Music'); 
    8888INSERT INTO subjects (code, title) VALUES ('0007', 'Psichology'); 
    89 INSERT INTO subjects (code, title) VALUES ('0008', 'Chemistry'); 
    90 INSERT INTO subjects (code, title) VALUES ('0009', 'Physiscs'); 
    91 INSERT INTO subjects (code, title) VALUES ('0010', 'Science'); 
    92 INSERT INTO subjects (code, title) VALUES ('0011', 'Public health'); 
    93 INSERT INTO subjects (code, title) VALUES ('0012', 'Biology'); 
    94 INSERT INTO subjects (code, title) VALUES ('0013', 'Sociology'); 
    95 INSERT INTO subjects (code, title) VALUES ('0014', 'Archeology'); 
    96 INSERT INTO subjects (code, title) VALUES ('0015', 'Spanish'); 
    97 INSERT INTO subjects (code, title) VALUES ('0016', 'Geography'); 
    98 INSERT INTO subjects (code, title) VALUES ('0017', 'Computing'); 
    99 INSERT INTO subjects (code, title) VALUES ('0018', 'Business Studies'); 
    100 INSERT INTO subjects (code, title) VALUES ('0019', 'Genre Studies'); 
    101 INSERT INTO subjects (code, title) VALUES ('0020', 'French'); 
    102 INSERT INTO subjects (code, title) VALUES ('0021', 'German'); 
    103 INSERT INTO subjects (code, title) VALUES ('0022', 'Health Care'); 
    104 INSERT INTO subjects (code, title) VALUES ('0023', 'Commerce'); 
    105 INSERT INTO subjects (code, title) VALUES ('0024', 'Graphic Design'); 
    106 INSERT INTO subjects (code, title) VALUES ('0025', 'Administration'); 
    107 INSERT INTO subjects (code, title) VALUES ('0026', 'Accounting'); 
    108 INSERT INTO subjects (code, title) VALUES ('0027', 'Classic Latin'); 
    109 INSERT INTO subjects (code, title) VALUES ('0028', 'Literature'); 
    110 INSERT INTO subjects (code, title) VALUES ('0029', 'Japanese'); 
    111 INSERT INTO subjects (code, title) VALUES ('0030', 'Chinese'); 
    112 INSERT INTO subjects (code, title) VALUES ('0031', 'Engineering'); 
    113 INSERT INTO subjects (code, title) VALUES ('0032', 'Sports'); 
     89 
    11490 
    11591-- Confirms user registration table, just a support table until new user confirm his/her email 
     
    590566--HABTM 
    591567CREATE TABLE "tests_vclassrooms" ( 
     568 "id" serial PRIMARY KEY, 
    592569 "test_id" int NOT NULL REFERENCES tests(id), 
    593570 "vclassroom_id" int NOT NULL REFERENCES vclassrooms(id), 
    594   PRIMARY KEY  ("test_id", "vclassroom_id") 
     571  UNIQUE  ("test_id", "vclassroom_id") 
    595572); 
    596573 
     
    674651 status int NOT NULL DEFAULT 0 
    675652); 
     653 
     654-- Wiki tables beggin 
     655CREATE TABLE wikis ( 
     656  id serial PRIMARY KEY, 
     657  title varchar(255) NOT NULL, 
     658  content text NOT NULL, 
     659  access smallint NOT NULL DEFAULT 0, 
     660  modified timestamp NOT NULL default now(), 
     661  user_id serial NOT NULL, 
     662  ip varchar(15) NOT NULL, 
     663  revision int(5) NOT NULL, 
     664  accessed datetime NOT NULL 
     665); 
     666 
     667CREATE TABLE wiki_revisions ( 
     668  id serial PRIMARY KEY, 
     669  title varchar(255) NOT NULL, 
     670  content text NOT NULL, 
     671  access smallint NOT NULL default 0, 
     672  modified timestamp NOT NULL default now(), 
     673  user_id serial NOT NULL, 
     674  ip varchar(15) NOT NULL, 
     675  revision int(5) NOT NULL, 
     676  accessed date NOT NULL default now() 
     677); 
     678 
     679CREATE TABLE settings ( 
     680  id serial PRIMARY KEY, 
     681  name varchar(50) NOT NULL UNIQUE, 
     682  value varchar(255) NOT NULL, 
     683  default varchar(255) NOT NULL, 
     684  description varchar(255) NOT NULL 
     685); 
     686 
     687CREATE TABLE upload_revisions ( 
     688  id serial PRIMARY KEY, 
     689  filename varchar(250) NOT NULL, 
     690  location varchar(250) NOT NULL, 
     691  access smallint NOT NULL, 
     692  modified timestamp NOT NULL default now(), 
     693  user_id int NOT NULL REFERENCES users(id), 
     694  ip varchar(15) NOT NULL, 
     695  revision int NOT NULL 
     696); 
     697 
     698CREATE TABLE uploads ( 
     699  id serial PRIMARY KEY, 
     700  filename varchar(255) NOT NULL UNIQUE, 
     701  location varchar(255) NOT NULL, 
     702  access smallint NOT NULL, 
     703  modified timestamp NOT NULL default now(), 
     704  user_id int NOT NULL REFERENCES users(id), 
     705  ip varchar(15) NOT NULL, 
     706  revision int NOT NULL 
     707); 
     708 
     709-- wiki tables ends