diff options
Diffstat (limited to 'SQL/postgres.update.sql')
-rw-r--r-- | SQL/postgres.update.sql | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SQL/postgres.update.sql b/SQL/postgres.update.sql index fdd7f0f5e..f9cd431b6 100644 --- a/SQL/postgres.update.sql +++ b/SQL/postgres.update.sql @@ -25,5 +25,7 @@ CREATE INDEX messages_created_idx ON messages (created); -- Updates from version 0.2-beta ALTER TABLE cache DROP CONSTRAINT cache_session_id_fkey; -ALTER TABLE cache ADD FOREIGN KEY (session_id) REFERENCES session(sess_id) ON DELETE CASCADE ON UPDATE CASCADE; -CREATE INDEX cache_session_id_idx ON "cache" (session_id); +ALTER TABLE cache ADD FOREIGN KEY (session_id) REFERENCES session (sess_id) ON DELETE CASCADE ON UPDATE CASCADE; + +CREATE INDEX cache_session_id_idx ON cache (session_id); +CREATE INDEX session_changed_idx ON session (changed); |