Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 201 lines (153 sloc) 5.387 kb
e019f2d0 » alecpl
2010-09-25 - s/RoundCube/Roundcube/
1 -- Roundcube Webmail initial database structure
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
2
3 --
80152b33 » alecpl
2011-09-07 - Rewritten messages caching (merged devel-mcache branch):
4 -- Table structure for table cache
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
5 --
6
7 CREATE TABLE cache (
8 cache_id integer NOT NULL PRIMARY KEY,
9 user_id integer NOT NULL default 0,
10 cache_key varchar(128) NOT NULL default '',
11 created datetime NOT NULL default '0000-00-00 00:00:00',
80152b33 » alecpl
2011-09-07 - Rewritten messages caching (merged devel-mcache branch):
12 data text NOT NULL
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
13 );
14
ac26b964 » thomascube
2008-03-25 Optimize database schema; get rid of unnecessary indexes
15 CREATE INDEX ix_cache_user_cache_key ON cache(user_id, cache_key);
e4d9f05e » alecpl
2008-11-24 - Added index on cache.created + small fixes in mssql DDL script
16 CREATE INDEX ix_cache_created ON cache(created);
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
17
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
18
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
19 -- --------------------------------------------------------
20
21 --
a61bbb24 » thomascube
2010-03-26 Added basic contact groups feature
22 -- Table structure for table contacts and related
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
23 --
24
25 CREATE TABLE contacts (
26 contact_id integer NOT NULL PRIMARY KEY,
a33118fd » alecpl
2012-01-05 - Applied fixes from trunk up to r5711
27 user_id integer NOT NULL,
58e3602a » thomascube
2006-02-04 Bugfixes for encoding and sending with attachments
28 changed datetime NOT NULL default '0000-00-00 00:00:00',
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
29 del tinyint NOT NULL default '0',
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
30 name varchar(128) NOT NULL default '',
a33118fd » alecpl
2012-01-05 - Applied fixes from trunk up to r5711
31 email text NOT NULL default '',
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
32 firstname varchar(128) NOT NULL default '',
33 surname varchar(128) NOT NULL default '',
3e263735 » thomascube
2011-02-14 Fulltext search over contact fields. Attention: DATABASE SCHEMA CHANG…
34 vcard text NOT NULL default '',
35 words text NOT NULL default ''
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
36 );
37
a33118fd » alecpl
2012-01-05 - Applied fixes from trunk up to r5711
38 CREATE INDEX ix_contacts_user_id ON contacts(user_id, del);
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
39
a61bbb24 » thomascube
2010-03-26 Added basic contact groups feature
40
41 CREATE TABLE contactgroups (
42 contactgroup_id integer NOT NULL PRIMARY KEY,
43 user_id integer NOT NULL default '0',
44 changed datetime NOT NULL default '0000-00-00 00:00:00',
45 del tinyint NOT NULL default '0',
46 name varchar(128) NOT NULL default ''
47 );
48
49 CREATE INDEX ix_contactgroups_user_id ON contactgroups(user_id, del);
50
51
52 CREATE TABLE contactgroupmembers (
53 contactgroup_id integer NOT NULL,
54 contact_id integer NOT NULL default '0',
55 created datetime NOT NULL default '0000-00-00 00:00:00',
56 PRIMARY KEY (contactgroup_id, contact_id)
57 );
58
3a5476d1 » alecpl
2011-02-23 - Add index on contactgroupmembers.contact_id column.
59 CREATE INDEX ix_contactgroupmembers_contact_id ON contactgroupmembers (contact_id);
60
a61bbb24 » thomascube
2010-03-26 Added basic contact groups feature
61
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
62 -- --------------------------------------------------------
63
64 --
65 -- Table structure for table identities
66 --
67
68 CREATE TABLE identities (
69 identity_id integer NOT NULL PRIMARY KEY,
70 user_id integer NOT NULL default '0',
a35062a1 » thomascube
2010-04-15 Always set changed date when marking a DB record as deleted + provide…
71 changed datetime NOT NULL default '0000-00-00 00:00:00',
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
72 del tinyint NOT NULL default '0',
73 standard tinyint NOT NULL default '0',
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
74 name varchar(128) NOT NULL default '',
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
75 organization varchar(128) default '',
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
76 email varchar(128) NOT NULL default '',
77 "reply-to" varchar(128) NOT NULL default '',
78 bcc varchar(128) NOT NULL default '',
a0109c49 » svncommit
2006-09-14 Initial TinyMCE editor support (still need to work on spellcheck and …
79 signature text NOT NULL default '',
80 html_signature tinyint NOT NULL default '0'
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
81 );
82
94fe9ca1 » alecpl
2010-03-06 - re-fix (#1486474) + require MySQL 4.0.8 + add index/update in ident…
83 CREATE INDEX ix_identities_user_id ON identities(user_id, del);
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
84
85
86 -- --------------------------------------------------------
87
88 --
89 -- Table structure for table users
90 --
91
92 CREATE TABLE users (
93 user_id integer NOT NULL PRIMARY KEY,
94 username varchar(128) NOT NULL default '',
95 mail_host varchar(128) NOT NULL default '',
96 alias varchar(128) NOT NULL default '',
97 created datetime NOT NULL default '0000-00-00 00:00:00',
e2402ef9 » alecpl
2010-04-28 - Set DEFAULT NULL for users.last_login
98 last_login datetime DEFAULT NULL,
debdda01 » alecpl
2008-11-25 #1485420: remove default (and not null) for users.language column in DDL
99 language varchar(5),
79fe17fb » thomascube
2005-10-07 Added SQLite supprt and MySQL update script
100 preferences text NOT NULL default ''
101 );
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
102
ace511a7 » alecpl
2010-10-06 - Add unique index on users.username+users.mail_host
103 CREATE UNIQUE INDEX ix_users_username ON users(username, mail_host);
6cb77869 » alecpl
2008-04-03 #1484854
104 CREATE INDEX ix_users_alias ON users(alias);
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
105
106 -- --------------------------------------------------------
107
108 --
109 -- Table structure for table session
110 --
111
112 CREATE TABLE session (
3ad2b1b4 » alecpl
2011-11-24 - Applied fixes from trunk up to r5479
113 sess_id varchar(128) NOT NULL PRIMARY KEY,
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
114 created datetime NOT NULL default '0000-00-00 00:00:00',
115 changed datetime NOT NULL default '0000-00-00 00:00:00',
84d06edb » thomascube
2007-09-19 IPv6 Compatability
116 ip varchar(40) NOT NULL default '',
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
117 vars text NOT NULL
118 );
119
3e48d2ee » alecpl
2008-11-21 - Increase speed of session destroy and garbage clean up
120 CREATE INDEX ix_session_changed ON session (changed);
1cded857 » thomascube
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
121
122 -- --------------------------------------------------------
123
66df0842 » alecpl
2011-09-06 - Merge devel-spellcheck branch:
124 --
125 -- Table structure for table dictionary
126 --
127
128 CREATE TABLE dictionary (
129 user_id integer DEFAULT NULL,
130 "language" varchar(5) NOT NULL,
131 data text NOT NULL
132 );
133
134 CREATE UNIQUE INDEX ix_dictionary_user_language ON dictionary (user_id, "language");
135
f8e48df7 » alecpl
2011-09-06 - Merge devel-saved_search branch (Addressbook Saved Searches)
136 -- --------------------------------------------------------
137
138 --
139 -- Table structure for table searches
140 --
141
142 CREATE TABLE searches (
143 search_id integer NOT NULL PRIMARY KEY,
144 user_id integer NOT NULL DEFAULT '0',
145 "type" smallint NOT NULL DEFAULT '0',
146 name varchar(128) NOT NULL,
147 data text NOT NULL
148 );
149
e8b25798 » alecpl
2011-12-14 - Aplied fixes from trunk up to r5615
150 CREATE UNIQUE INDEX ix_searches_user_type_name ON searches (user_id, type, name);
80152b33 » alecpl
2011-09-07 - Rewritten messages caching (merged devel-mcache branch):
151
152 -- --------------------------------------------------------
153
154 --
155 -- Table structure for table cache_index
156 --
157
158 CREATE TABLE cache_index (
159 user_id integer NOT NULL,
160 mailbox varchar(255) NOT NULL,
161 changed datetime NOT NULL default '0000-00-00 00:00:00',
609d3923 » alecpl
2011-09-18 - Cache synchronization using QRESYNC/CONDSTORE
162 valid smallint NOT NULL DEFAULT '0',
80152b33 » alecpl
2011-09-07 - Rewritten messages caching (merged devel-mcache branch):
163 data text NOT NULL,
164 PRIMARY KEY (user_id, mailbox)
165 );
166
167 CREATE INDEX ix_cache_index_changed ON cache_index (changed);
168
169 -- --------------------------------------------------------
170
171 --
172 -- Table structure for table cache_thread
173 --
174
175 CREATE TABLE cache_thread (
176 user_id integer NOT NULL,
177 mailbox varchar(255) NOT NULL,
178 changed datetime NOT NULL default '0000-00-00 00:00:00',
179 data text NOT NULL,
180 PRIMARY KEY (user_id, mailbox)
181 );
182
183 CREATE INDEX ix_cache_thread_changed ON cache_thread (changed);
184
185 -- --------------------------------------------------------
186
187 --
188 -- Table structure for table cache_messages
189 --
190
191 CREATE TABLE cache_messages (
192 user_id integer NOT NULL,
193 mailbox varchar(255) NOT NULL,
194 uid integer NOT NULL,
195 changed datetime NOT NULL default '0000-00-00 00:00:00',
196 data text NOT NULL,
609d3923 » alecpl
2011-09-18 - Cache synchronization using QRESYNC/CONDSTORE
197 flags integer NOT NULL DEFAULT '0',
80152b33 » alecpl
2011-09-07 - Rewritten messages caching (merged devel-mcache branch):
198 PRIMARY KEY (user_id, mailbox, uid)
199 );
200
201 CREATE INDEX ix_cache_messages_changed ON cache_messages (changed);
Something went wrong with that request. Please try again.