diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-05 08:45:22 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-05 08:45:22 +0000 |
| commit | 748f497cb09fccb1eeff25b0bc41f69b44bc0f5c (patch) | |
| tree | 780134527c5e9060a8db996f2e15690d55ebf634 /roundcubemail/SQL/sqlite.initial.sql | |
| parent | 63a99a2d3e1c0da960b295cb52f2d016ef7c6b97 (diff) | |
- Fix SQL Error when saving a contact with many email addresses (#1488286)
git-svn-id: https://svn.roundcube.net/trunk@5711 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/SQL/sqlite.initial.sql')
| -rw-r--r-- | roundcubemail/SQL/sqlite.initial.sql | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/SQL/sqlite.initial.sql b/roundcubemail/SQL/sqlite.initial.sql index 2c4f9dccc..dafb5a15d 100644 --- a/roundcubemail/SQL/sqlite.initial.sql +++ b/roundcubemail/SQL/sqlite.initial.sql @@ -24,18 +24,18 @@ CREATE INDEX ix_cache_created ON cache(created); CREATE TABLE contacts ( contact_id integer NOT NULL PRIMARY KEY, - user_id integer NOT NULL default '0', + user_id integer NOT NULL, changed datetime NOT NULL default '0000-00-00 00:00:00', del tinyint NOT NULL default '0', name varchar(128) NOT NULL default '', - email varchar(255) NOT NULL default '', + email text NOT NULL default '', firstname varchar(128) NOT NULL default '', surname varchar(128) NOT NULL default '', vcard text NOT NULL default '', words text NOT NULL default '' ); -CREATE INDEX ix_contacts_user_id ON contacts(user_id, email); +CREATE INDEX ix_contacts_user_id ON contacts(user_id, del); CREATE TABLE contactgroups ( |
