summaryrefslogtreecommitdiff
path: root/SQL/sqlite.initial.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-01-05 08:50:07 +0000
committeralecpl <alec@alec.pl>2012-01-05 08:50:07 +0000
commita33118fd0f0fa3765507b50bcb45cf44da1190bb (patch)
tree04ad1aa53b40c411051570d2bb9df2261bf78aed /SQL/sqlite.initial.sql
parent896b2204e85aafb7eece9e42a0fb4e3bf5a8551b (diff)
- Applied fixes from trunk up to r5711
Diffstat (limited to 'SQL/sqlite.initial.sql')
-rw-r--r--SQL/sqlite.initial.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/SQL/sqlite.initial.sql b/SQL/sqlite.initial.sql
index 2c4f9dccc..dafb5a15d 100644
--- a/SQL/sqlite.initial.sql
+++ b/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 (