Permalink
Browse files

Added default values

  • Loading branch information...
paca70
paca70 committed Mar 27, 2004
1 parent e2a9adc commit c13edeca6a8a4d7f2e8b152ead9fb28005a30db3
Showing with 3 additions and 3 deletions.
  1. +2 −2 mod/chat/db/postgres7.sql
  2. +1 −1 mod/dialogue/db/postgres7.sql
@@ -6,7 +6,7 @@ CREATE TABLE prefix_chat (
id SERIAL,
course INTEGER NOT NULL default '0',
name varchar(255) NOT NULL default '',
- intro text NOT NULL,
+ intro text NOT NULL default '',
keepdays INTEGER NOT NULL default '0',
studentlogs INTEGER NOT NULL default '0',
chattime INTEGER NOT NULL default '0',
@@ -26,7 +26,7 @@ CREATE TABLE prefix_chat_messages (
userid integer NOT NULL default '0',
groupid integer NOT NULL default '0',
system integer NOT NULL default '0',
- message text NOT NULL,
+ message text NOT NULL default '',
timestamp integer NOT NULL default '0',
PRIMARY KEY (id)
);
@@ -64,7 +64,7 @@ CREATE TABLE prefix_dialogue_entries (
userid INT8 NOT NULL default '0',
timecreated INT8 NOT NULL default '0',
mailed INT2 NOT NULL default '0',
- text text NOT NULL
+ text text NOT NULL default ''
) ;
CREATE INDEX prefix_dialogue_entries_conversationid_idx ON prefix_dialogue_entries (conversationid) ;

0 comments on commit c13edec

Please sign in to comment.