Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 20 lines (16 sloc) 1.102 kb
ac26b96 @thomascube Optimize database schema; get rid of unnecessary indexes
thomascube authored
1 -- RoundCube Webmail update script for Postgres databases
2 -- Updates from version 0.1-stable to 0.1.1
a0109c4 Initial TinyMCE editor support (still need to work on spellcheck and …
svncommit authored
3
6cb7786 @alecpl #1484854
alecpl authored
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;
Something went wrong with that request. Please try again.