diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-22 11:12:28 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-22 11:12:28 +0100 |
commit | 4d25bc6c92c3d219786892c5d510e0c4c4eb8b96 (patch) | |
tree | 879210050337441223b6cd103964230ba13cb1e7 /synapse/storage/schema | |
parent | Filter room ids before hitting the database (diff) | |
download | synapse-4d25bc6c92c3d219786892c5d510e0c4c4eb8b96.tar.xz |
Move FTS to delta 25
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r-- | synapse/storage/schema/delta/25/fts.py (renamed from synapse/storage/schema/delta/24/fts.py) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/schema/delta/24/fts.py b/synapse/storage/schema/delta/25/fts.py index 0c752d8426..fd181fc630 100644 --- a/synapse/storage/schema/delta/24/fts.py +++ b/synapse/storage/schema/delta/25/fts.py @@ -23,7 +23,7 @@ logger = logging.getLogger(__name__) POSTGRES_SQL = """ -CREATE TABLE event_search ( +CREATE TABLE IF NOT EXISTS event_search ( event_id TEXT, room_id TEXT, key TEXT, @@ -53,7 +53,7 @@ CREATE INDEX event_search_ev_ridx ON event_search(room_id); SQLITE_TABLE = ( - "CREATE VIRTUAL TABLE event_search USING fts3 ( event_id, room_id, key, value)" + "CREATE VIRTUAL TABLE IF NOT EXISTS event_search USING fts3 ( event_id, room_id, key, value)" ) |