]> git.donarmstrong.com Git - roundcube.git/blob - debian/sql/sqlite/0.6+dfsg-1
Add Dutch debconf translation, thanks to Jeroen Schot. Closes: #656082.
[roundcube.git] / debian / sql / sqlite / 0.6+dfsg-1
1 CREATE TABLE contacts_tmp (
2     contact_id integer NOT NULL PRIMARY KEY,
3     user_id integer NOT NULL default '0',
4     changed datetime NOT NULL default '0000-00-00 00:00:00',
5     del tinyint NOT NULL default '0',
6     name varchar(128) NOT NULL default '',
7     email varchar(255) NOT NULL default '',
8     firstname varchar(128) NOT NULL default '',
9     surname varchar(128) NOT NULL default '',
10     vcard text NOT NULL default ''
11 );
12
13 INSERT INTO contacts_tmp (contact_id, user_id, changed, del, name, email, firstname, surname, vcard)
14     SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard FROM contacts;
15
16 DROP TABLE contacts;
17 CREATE TABLE contacts (
18     contact_id integer NOT NULL PRIMARY KEY,
19     user_id integer NOT NULL default '0',
20     changed datetime NOT NULL default '0000-00-00 00:00:00',
21     del tinyint NOT NULL default '0',
22     name varchar(128) NOT NULL default '',
23     email varchar(255) NOT NULL default '',
24     firstname varchar(128) NOT NULL default '',
25     surname varchar(128) NOT NULL default '',
26     vcard text NOT NULL default '',
27     words text NOT NULL default ''
28 );
29
30 INSERT INTO contacts (contact_id, user_id, changed, del, name, email, firstname, surname, vcard)
31     SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard FROM contacts_tmp;
32
33 CREATE INDEX ix_contacts_user_id ON contacts(user_id, email);
34 DROP TABLE contacts_tmp;
35
36 DELETE FROM messages;
37 DELETE FROM cache;
38 CREATE INDEX ix_contactgroupmembers_contact_id ON contactgroupmembers (contact_id);