Permalink
Browse files

Change vcard field to LONGTEXT to completely store vcards with embedd…

…ed photos
  • Loading branch information...
1 parent 4ae996c commit 09b0e36b3f453a410b3389b6d95a29605d13bfca @thomascube thomascube committed Apr 27, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 SQL/mysql.initial.sql
  2. +1 −1 SQL/mysql.update.sql
View
@@ -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`),
View
@@ -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`);
-

0 comments on commit 09b0e36

Please sign in to comment.