Changeset 401 for trunk/app/config
- Timestamp:
- 04/16/08 03:07:25 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/config/sql/karamelo_postgres.sql (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/karamelo_postgres.sql
r395 r401 139 139 3, 1, 1); 140 140 141 -- Discu tions onnews142 CREATE TABLE commentnews (143 idserial PRIMARY KEY,144 new_idint NOT NULL REFERENCES news(id) ON DELETE CASCADE,145 namevarchar(100),146 commenttext NOT NULL,141 -- Discussions on portal news 142 CREATE 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, 147 147 "created" timestamp(0) with time zone DEFAULT now() NOT NULL, 148 levelint NOT NULL,149 comentnew_idint NOT NULL,150 user_idint REFERENCES news(id) NOT NULL,151 statusint NOT NULL DEFAULT 0148 "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 152 152 ); 153 153 … … 163 163 INSERT INTO licenses (title) VALUES ('CopyRigth License'); 164 164 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 CASCADE176 );177 178 165 -- ** Forums tables beggins ** 179 CREATE TABLE catforums ( -- phorums categories166 CREATE TABLE catforums ( -- forums categories 180 167 id serial PRIMARY KEY, 181 168 title varchar(150) NOT NULL, … … 183 170 created timestamp(0) with time zone DEFAULT now() NOT NULL, 184 171 user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE, 185 status int NOT NULL DEFAULT 0 -- Activated = 1, Deactivated=0172 status int NOT NULL DEFAULT 0 -- Enabled = 1, Disabled = 0 186 173 ); 187 174
