IF NOT EXISTS does not work for all systems [some sqlite pysqlite stuff]. avoid it

This commit is contained in:
Nikos Kouremenos 2006-10-07 14:48:01 +00:00
parent 10ae874cb6
commit b4ab022956
1 changed files with 2 additions and 2 deletions

View File

@ -317,8 +317,8 @@ class OptionsParser:
# apply indeces
cur.executescript(
'''
CREATE INDEX IF NOT EXISTS idx_logs_jid_id_kind ON logs (jid_id, kind);
CREATE INDEX IF NOT EXISTS idx_unread_messages_jid_id ON unread_messages (jid_id);
CREATE INDEX idx_logs_jid_id_kind ON logs (jid_id, kind);
CREATE INDEX idx_unread_messages_jid_id ON unread_messages (jid_id);
'''
)