Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 98 lines (69 sloc) 3.418 kb
e019f2d0 »
2010-09-25 - s/RoundCube/Roundcube/
1 -- Roundcube Webmail update script for Postgres databases
ac26b964 »
2008-03-25 Optimize database schema; get rid of unnecessary indexes
2 -- Updates from version 0.1-stable to 0.1.1
a0109c49 »
2006-09-14 Initial TinyMCE editor support (still need to work on spellcheck and …
3
6cb77869 »
2008-04-03 #1484854
4 CREATE INDEX cache_user_id_idx ON cache (user_id, cache_key);
5 CREATE INDEX contacts_user_id_idx ON contacts (user_id);
6 CREATE INDEX identities_user_id_idx ON identities (user_id);
7
8 CREATE INDEX users_username_id_idx ON users (username);
9 CREATE INDEX users_alias_id_idx ON users (alias);
10
11 -- added ON DELETE/UPDATE actions
12 ALTER TABLE messages DROP CONSTRAINT messages_user_id_fkey;
13 ALTER TABLE messages ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
14 ALTER TABLE identities DROP CONSTRAINT identities_user_id_fkey;
15 ALTER TABLE identities ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
16 ALTER TABLE contacts DROP CONSTRAINT contacts_user_id_fkey;
17 ALTER TABLE contacts ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
18 ALTER TABLE cache DROP CONSTRAINT cache_user_id_fkey;
19 ALTER TABLE cache ADD FOREIGN KEY (user_id) REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE;
c98f3b5d »
2008-06-12 #1485125: added index on messages.created
20
21 -- Updates from version 0.2-alpha
22
23 CREATE INDEX messages_created_idx ON messages (created);
be7d3b69 »
2008-11-21 - Fix 'cache' table cleanup on session destroy (#1485516)
24
25 -- Updates from version 0.2-beta
26
dcf780a6 »
2008-11-22 - fix r2076: removed cache.session_id column, removed DELETEs from ca…
27 ALTER TABLE cache DROP session_id;
3e48d2ee »
2008-11-21 - Increase speed of session destroy and garbage clean up
28
29 CREATE INDEX session_changed_idx ON session (changed);
e4d9f05e »
2008-11-24 - Added index on cache.created + small fixes in mssql DDL script
30 CREATE INDEX cache_created_idx ON "cache" (created);
debdda01 »
2008-11-25 #1485420: remove default (and not null) for users.language column in DDL
31
32 ALTER TABLE users ALTER "language" DROP NOT NULL;
33 ALTER TABLE users ALTER "language" DROP DEFAULT;
a493ea8e »
2008-12-03 - change few "boolean" columns type from integer to smallint
34
35 ALTER TABLE identities ALTER del TYPE smallint;
36 ALTER TABLE identities ALTER standard TYPE smallint;
37 ALTER TABLE contacts ALTER del TYPE smallint;
38 ALTER TABLE messages ALTER del TYPE smallint;
3d601d26 »
2009-09-07 - added index in messages table
39
40 -- Updates from version 0.3-stable
41
7fec6b2d »
2009-09-13 - "TRUNCATE messages" is required to remove buggy cache entries
42 TRUNCATE messages;
f47e2dc5 »
2009-12-11 - move TRUNCATE before CREATE INDEX (#1486362)
43 CREATE INDEX messages_index_idx ON messages (user_id, cache_key, idx);
23b76563 »
2009-09-29 - use better index for contacts table
44 DROP INDEX contacts_user_id_idx;
45 CREATE INDEX contacts_user_id_idx ON contacts (user_id, email);
94fe9ca1 »
2010-03-06 - re-fix (#1486474) + require MySQL 4.0.8 + add index/update in ident…
46
47 -- Updates from version 0.3.1
48
49 DROP INDEX identities_user_id_idx;
50 CREATE INDEX identities_user_id_idx ON identities (user_id, del);
22d6b534 »
2010-03-27 - contactgroups DDL for postgres
51
8a79f224 »
2010-04-15 - Fix: postgres doens't support AFTER clause
52 ALTER TABLE identities ADD changed timestamp with time zone DEFAULT now() NOT NULL;
a35062a1 »
2010-04-15 Always set changed date when marking a DB record as deleted + provide…
53
22d6b534 »
2010-03-27 - contactgroups DDL for postgres
54 CREATE SEQUENCE contactgroups_ids
55 INCREMENT BY 1
56 NO MAXVALUE
57 NO MINVALUE
58 CACHE 1;
ace511a7 »
2010-10-06 - Add unique index on users.username+users.mail_host
59
22d6b534 »
2010-03-27 - contactgroups DDL for postgres
60 CREATE TABLE contactgroups (
61 contactgroup_id integer DEFAULT nextval('contactgroups_ids'::text) PRIMARY KEY,
62 user_id integer NOT NULL
63 REFERENCES users(user_id) ON DELETE CASCADE ON UPDATE CASCADE,
64 changed timestamp with time zone DEFAULT now() NOT NULL,
65 del smallint NOT NULL DEFAULT 0,
66 name varchar(128) NOT NULL DEFAULT ''
67 );
68
69 CREATE INDEX contactgroups_user_id_idx ON contactgroups (user_id, del);
70
71 CREATE TABLE contactgroupmembers (
72 contactgroup_id integer NOT NULL
73 REFERENCES contactgroups(contactgroup_id) ON DELETE CASCADE ON UPDATE CASCADE,
74 contact_id integer NOT NULL
75 REFERENCES contacts(contact_id) ON DELETE CASCADE ON UPDATE CASCADE,
76 created timestamp with time zone DEFAULT now() NOT NULL,
77 PRIMARY KEY (contactgroup_id, contact_id)
78 );
e2402ef9 »
2010-04-28 - Set DEFAULT NULL for users.last_login
79
80 -- Updates from version 0.4-beta
81
82 ALTER TABLE users ALTER last_login DROP NOT NULL;
83 ALTER TABLE users ALTER last_login SET DEFAULT NULL;
ace511a7 »
2010-10-06 - Add unique index on users.username+users.mail_host
84
85 -- Updates from version 0.4.2
86
87 DROP INDEX users_username_id_idx;
88 ALTER TABLE users ADD UNIQUE (username, mail_host);
6f096812 »
2010-11-02 - Support contact's email addresses up to 255 characters long (#1487095)
89 ALTER TABLE contacts ALTER email TYPE varchar(255);
ace511a7 »
2010-10-06 - Add unique index on users.username+users.mail_host
90
cdb8b96e »
2011-01-26 Clear message cache table when upgrading
91 TRUNCATE messages;
3e263735 »
2011-02-14 Fulltext search over contact fields. Attention: DATABASE SCHEMA CHANG…
92
93
94 -- Updates from version 0.5.x
95
96 ALTER TABLE contacts ADD words TEXT NULL;
97
Something went wrong with that request. Please try again.