Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 125 lines (99 sloc) 3.63 kb
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
1 -- RoundCube Webmail initial database structure
2
3 --
4 -- Table structure for table `cache`
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',
12 data longtext NOT NULL
13 );
14
ac26b964 »
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 »
2008-11-24 - Added index on cache.created + small fixes in mssql DDL script
16 CREATE INDEX ix_cache_created ON cache(created);
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
17
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
18
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
19 -- --------------------------------------------------------
20
21 --
22 -- Table structure for table contacts
23 --
24
25 CREATE TABLE contacts (
26 contact_id integer NOT NULL PRIMARY KEY,
27 user_id integer NOT NULL default '0',
58e3602a »
2006-02-04 Bugfixes for encoding and sending with attachments
28 changed datetime NOT NULL default '0000-00-00 00:00:00',
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
29 del tinyint NOT NULL default '0',
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
30 name varchar(128) NOT NULL default '',
31 email varchar(128) NOT NULL default '',
32 firstname varchar(128) NOT NULL default '',
33 surname varchar(128) NOT NULL default '',
34 vcard text NOT NULL default ''
35 );
36
23b76563 »
2009-09-29 - use better index for contacts table
37 CREATE INDEX ix_contacts_user_id ON contacts(user_id, email);
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
38
39 -- --------------------------------------------------------
40
41 --
42 -- Table structure for table identities
43 --
44
45 CREATE TABLE identities (
46 identity_id integer NOT NULL PRIMARY KEY,
47 user_id integer NOT NULL default '0',
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
48 del tinyint NOT NULL default '0',
49 standard tinyint NOT NULL default '0',
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
50 name varchar(128) NOT NULL default '',
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
51 organization varchar(128) default '',
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
52 email varchar(128) NOT NULL default '',
53 "reply-to" varchar(128) NOT NULL default '',
54 bcc varchar(128) NOT NULL default '',
a0109c49 »
2006-09-14 Initial TinyMCE editor support (still need to work on spellcheck and …
55 signature text NOT NULL default '',
56 html_signature tinyint NOT NULL default '0'
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
57 );
58
94fe9ca1 »
2010-03-06 - re-fix (#1486474) + require MySQL 4.0.8 + add index/update in ident…
59 CREATE INDEX ix_identities_user_id ON identities(user_id, del);
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
60
61
62 -- --------------------------------------------------------
63
64 --
65 -- Table structure for table users
66 --
67
68 CREATE TABLE users (
69 user_id integer NOT NULL PRIMARY KEY,
70 username varchar(128) NOT NULL default '',
71 mail_host varchar(128) NOT NULL default '',
72 alias varchar(128) NOT NULL default '',
73 created datetime NOT NULL default '0000-00-00 00:00:00',
74 last_login datetime NOT NULL default '0000-00-00 00:00:00',
debdda01 »
2008-11-25 #1485420: remove default (and not null) for users.language column in DDL
75 language varchar(5),
79fe17fb »
2005-10-07 Added SQLite supprt and MySQL update script
76 preferences text NOT NULL default ''
77 );
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
78
6cb77869 »
2008-04-03 #1484854
79 CREATE INDEX ix_users_username ON users(username);
80 CREATE INDEX ix_users_alias ON users(alias);
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
81
82 -- --------------------------------------------------------
83
84 --
85 -- Table structure for table session
86 --
87
88 CREATE TABLE session (
89 sess_id varchar(40) NOT NULL PRIMARY KEY,
90 created datetime NOT NULL default '0000-00-00 00:00:00',
91 changed datetime NOT NULL default '0000-00-00 00:00:00',
84d06edb »
2007-09-19 IPv6 Compatability
92 ip varchar(40) NOT NULL default '',
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
93 vars text NOT NULL
94 );
95
3e48d2ee »
2008-11-21 - Increase speed of session destroy and garbage clean up
96 CREATE INDEX ix_session_changed ON session (changed);
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
97
98 -- --------------------------------------------------------
99
100 --
101 -- Table structure for table messages
102 --
103
104 CREATE TABLE messages (
105 message_id integer NOT NULL PRIMARY KEY,
106 user_id integer NOT NULL default '0',
107 del tinyint NOT NULL default '0',
108 cache_key varchar(128) NOT NULL default '',
b5947413 »
2006-01-25 Add created date to message cache
109 created datetime NOT NULL default '0000-00-00 00:00:00',
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
110 idx integer NOT NULL default '0',
111 uid integer NOT NULL default '0',
112 subject varchar(255) NOT NULL default '',
113 "from" varchar(255) NOT NULL default '',
114 "to" varchar(255) NOT NULL default '',
ac26b964 »
2008-03-25 Optimize database schema; get rid of unnecessary indexes
115 "cc" varchar(255) NOT NULL default '',
116 "date" datetime NOT NULL default '0000-00-00 00:00:00',
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
117 size integer NOT NULL default '0',
118 headers text NOT NULL,
f7bfec96 »
2006-08-25 Finalized new message parsing. Attention: changes in database schema
119 structure text
1cded857 »
2005-12-03 Re-design of caching (new database table added\!); some bugfixes; Pos…
120 );
121
3d601d26 »
2009-09-07 - added index in messages table
122 CREATE UNIQUE INDEX ix_messages_user_cache_uid ON messages (user_id,cache_key,uid);
123 CREATE INDEX ix_messages_index ON messages (user_id,cache_key,idx);
c98f3b5d »
2008-06-12 #1485125: added index on messages.created
124 CREATE INDEX ix_messages_created ON messages (created);
Something went wrong with that request. Please try again.