Browse files

-Fixed Mysql DDL for default identities creation (#1485070)

  • Loading branch information...
1 parent b02d1c8 commit d7f3d796a240ed830346e74de46e108cc3fb4d3a @alecpl alecpl committed May 19, 2008
Showing with 21 additions and 7 deletions.
  1. +4 −0 CHANGELOG
  2. +3 −3 SQL/mysql.initial.sql
  3. +10 −0 SQL/mysql.update.sql
  4. +4 −4 SQL/mysql5.initial.sql
View
4 CHANGELOG
@@ -1,6 +1,10 @@
CHANGELOG RoundCube Webmail
---------------------------
+2008/05/19 (alec)
+----------
+- Fixed Mysql DDL for default identities creation (#1485070)
+
2008/05/16 (alec)
----------
- In Preferences added possibility to configure 'read_when_deleted',
View
6 SQL/mysql.initial.sql
@@ -50,12 +50,12 @@ CREATE TABLE `identities` (
`user_id` int(10) unsigned NOT NULL default '0',
`del` tinyint(1) NOT NULL default '0',
`standard` tinyint(1) NOT NULL default '0',
- `name` varchar(128) NOT NULL default '',
+ `name` varchar(128) NOT NULL,
`organization` varchar(128) NOT NULL default '',
- `email` varchar(128) NOT NULL default '',
+ `email` varchar(128) NOT NULL,
`reply-to` varchar(128) NOT NULL default '',
`bcc` varchar(128) NOT NULL default '',
- `signature` text NOT NULL,
+ `signature` text NOT NULL default '',
`html_signature` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`identity_id`),
KEY `user_id` (`user_id`)
View
10 SQL/mysql.update.sql
@@ -15,3 +15,13 @@ ALTER TABLE `cache`
ALTER TABLE `users`
ADD INDEX `username_index` (`username`),
ADD INDEX `alias_index` (`alias`);
+
+-- Updates from version 0.1.1
+
+ALTER TABLE `identities`
+ MODIFY `signature` text NOT NULL DEFAULT '',
+ MODIFY `bcc` varchar(128) NOT NULL DEFAULT '',
+ MODIFY `reply-to` varchar(128) NOT NULL DEFAULT '',
+ MODIFY `organization` varchar(128) NOT NULL DEFAULT '',
+ MODIFY `name` varchar(128) NOT NULL,
+ MODIFY `email` varchar(128) NOT NULL;
View
8 SQL/mysql5.initial.sql
@@ -107,11 +107,11 @@ CREATE TABLE `identities` (
`del` tinyint(1) NOT NULL DEFAULT '0',
`standard` tinyint(1) NOT NULL DEFAULT '0',
`name` varchar(128) NOT NULL,
- `organization` varchar(128) NOT NULL,
+ `organization` varchar(128) NOT NULL DEFAULT '',
`email` varchar(128) NOT NULL,
- `reply-to` varchar(128) NOT NULL,
- `bcc` varchar(128) NOT NULL,
- `signature` text NOT NULL,
+ `reply-to` varchar(128) NOT NULL DEFAULT '',
+ `bcc` varchar(128) NOT NULL DEFAULT '',
+ `signature` text NOT NULL DEFAULT '',
`html_signature` tinyint(1) NOT NULL DEFAULT '0',
`user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY(`identity_id`),

0 comments on commit d7f3d79

Please sign in to comment.