Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added default values

  • Loading branch information...
commit c13edeca6a8a4d7f2e8b152ead9fb28005a30db3 1 parent e2a9adc
paca70 authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 mod/chat/db/postgres7.sql
  2. +1 −1  mod/dialogue/db/postgres7.sql
View
4 mod/chat/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)
);
View
2  mod/dialogue/db/postgres7.sql
@@ -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) ;
Please sign in to comment.
Something went wrong with that request. Please try again.