diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-27 17:10:07 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-04-27 17:10:07 +0000 |
| commit | 199c1ea8389abb003a8c663ca831ef8f269689a3 (patch) | |
| tree | d873f58b58a70933a1edcbe6f245118843da92f4 /roundcubemail/SQL | |
| parent | 4f580c4a11d88b423bb68c763dc229db093fb8c5 (diff) | |
Change vcard field to LONGTEXT to completely store vcards with embedded photos
git-svn-id: https://svn.roundcube.net/trunk@4709 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/SQL')
| -rw-r--r-- | roundcubemail/SQL/mysql.initial.sql | 2 | ||||
| -rw-r--r-- | roundcubemail/SQL/mysql.update.sql | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/SQL/mysql.initial.sql b/roundcubemail/SQL/mysql.initial.sql index 8e2e61c9e..14bbb968a 100644 --- a/roundcubemail/SQL/mysql.initial.sql +++ b/roundcubemail/SQL/mysql.initial.sql @@ -86,7 +86,7 @@ CREATE TABLE `contacts` ( `email` varchar(255) NOT NULL, `firstname` varchar(128) NOT NULL DEFAULT '', `surname` varchar(128) NOT NULL DEFAULT '', - `vcard` text NULL, + `vcard` longtext NULL, `words` text NULL, `user_id` int(10) UNSIGNED NOT NULL DEFAULT '0', PRIMARY KEY(`contact_id`), diff --git a/roundcubemail/SQL/mysql.update.sql b/roundcubemail/SQL/mysql.update.sql index 4cb087edd..47c8bb379 100644 --- a/roundcubemail/SQL/mysql.update.sql +++ b/roundcubemail/SQL/mysql.update.sql @@ -136,5 +136,5 @@ TRUNCATE TABLE `messages`; -- Updates from version 0.5.1 ALTER TABLE `contacts` ADD `words` TEXT NULL AFTER `vcard`; +ALTER TABLE `contacts` CHANGE `vcard` `vcard` LONGTEXT /*!40101 CHARACTER SET utf8 */ NULL DEFAULT NULL; ALTER TABLE `contactgroupmembers` ADD INDEX `contactgroupmembers_contact_index` (`contact_id`); -
\ No newline at end of file |
