Show
Ignore:
Timestamp:
04/16/08 03:07:25 (9 months ago)
Author:
aarkerio
Message:

Comment on new

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/sql/karamelo_postgres.sql

    r395 r401  
    1391393, 1, 1); 
    140140 
    141 -- Discutions on news 
    142 CREATE TABLE commentnews ( 
    143  id serial PRIMARY KEY, 
    144  new_id int NOT NULL REFERENCES news(id) ON DELETE CASCADE, 
    145  name varchar(100), 
    146  comment text NOT NULL, 
     141-- Discussions on portal news 
     142CREATE TABLE discussions ( 
     143 "id" serial PRIMARY KEY, 
     144 "new_id" int NOT NULL REFERENCES news(id) ON DELETE CASCADE, 
     145 "name" varchar(100), 
     146 "comment" text NOT NULL, 
    147147 "created" timestamp(0) with time zone DEFAULT now() NOT NULL, 
    148  level int NOT NULL, 
    149  comentnew_id int NOT NULL, 
    150  user_id int REFERENCES news(id) NOT NULL, 
    151  status int NOT NULL DEFAULT 0 
     148 "level" int NOT NULL, 
     149 "discussion_id" int NOT NULL, 
     150 "user_id" int REFERENCES news(id) NOT NULL, 
     151 "status" int NOT NULL DEFAULT 0 
    152152); 
    153153 
     
    163163INSERT INTO licenses (title) VALUES ('CopyRigth License'); 
    164164 
    165 --Edis (Educative elements) 
    166 CREATE TABLE edis ( 
    167  id serial PRIMARY KEY, 
    168  title varchar(150) NOT NULL, 
    169  tags varchar(150) NOT NULL, 
    170  description text, 
    171  status smallint NOT NULL DEFAULT 0, 
    172  created timestamp(0) with time zone DEFAULT now() NOT NULL, 
    173  modified timestamp(0) with time zone DEFAULT now() NOT NULL, 
    174  license_id integer NOT NULL REFERENCES licenses(id) ON DELETE CASCADE, 
    175  user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE 
    176 ); 
    177  
    178165-- ** Forums tables beggins ** 
    179 CREATE TABLE catforums (  -- phorums categories 
     166CREATE TABLE catforums (  -- forums categories 
    180167 id serial PRIMARY KEY, 
    181168 title varchar(150) NOT NULL, 
     
    183170 created timestamp(0) with time zone DEFAULT now() NOT NULL, 
    184171 user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE, 
    185  status int NOT NULL DEFAULT 0 -- Activated = 1,  Deactivated=0 
     172 status int NOT NULL DEFAULT 0 -- Enabled = 1,  Disabled = 0 
    186173); 
    187174