Added default values

This commit is contained in:
paca70
2004-03-27 13:08:21 +00:00
parent e2a9adcc57
commit c13edeca6a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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)
);
+1 -1
View File
@@ -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) ;