Added some missing NOT NULL restrictions

SVN Revision: 952
This commit is contained in:
Christophe Romain 2007-09-28 13:33:27 +00:00
parent 0bb936f848
commit 665abff588
4 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2007-09-28 Christophe Romain <christophe.romain@process-one.net>
* src/odbc/mysql.sql: Added some missing NOT NULL restrictions
* src/odbc/mssql.sql: Likewise
* src/odbc/pg.sql: Likewise
2007-09-27 Christophe Romain <christophe.romain@process-one.net> 2007-09-27 Christophe Romain <christophe.romain@process-one.net>
* src/ejabberdctl.template: apply rootdir patch from Badlop (EJAB-385) * src/ejabberdctl.template: apply rootdir patch from Badlop (EJAB-385)

View File

@ -118,7 +118,7 @@ GO
CREATE TABLE [dbo].[spool] ( CREATE TABLE [dbo].[spool] (
[id] [numeric](19, 0) IDENTITY (1, 1) NOT NULL , [id] [numeric](19, 0) IDENTITY (1, 1) NOT NULL ,
[username] [varchar] (250) NOT NULL , [username] [varchar] (250) NOT NULL ,
[xml] [text] NULL , [xml] [text] NOT NULL ,
[notifyprocessed] [bit] NULL , [notifyprocessed] [bit] NULL ,
[created] [datetime] NULL , [created] [datetime] NULL ,
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

View File

@ -20,9 +20,9 @@ CREATE TABLE rosterusers (
nick text NOT NULL, nick text NOT NULL,
subscription character(1) NOT NULL, subscription character(1) NOT NULL,
ask character(1) NOT NULL, ask character(1) NOT NULL,
askmessage text, askmessage text NOT NULL,
server character(1) NOT NULL, server character(1) NOT NULL,
subscribe text, subscribe text NOT NULL,
type text type text
) CHARACTER SET utf8; ) CHARACTER SET utf8;
@ -41,7 +41,7 @@ CREATE INDEX pk_rosterg_user_jid ON rostergroups(username(75), jid(75));
CREATE TABLE spool ( CREATE TABLE spool (
username varchar(250) NOT NULL, username varchar(250) NOT NULL,
xml text, xml text NOT NULL,
seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE seq BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE
) CHARACTER SET utf8; ) CHARACTER SET utf8;

View File

@ -40,7 +40,7 @@ CREATE INDEX pk_rosterg_user_jid ON rostergroups USING btree (username, jid);
CREATE TABLE spool ( CREATE TABLE spool (
username text NOT NULL, username text NOT NULL,
xml text, xml text NOT NULL,
seq SERIAL seq SERIAL
); );