IF NOT EXISTS does not work for all systems [some sqlite pysqlite stuff]. avoid it
This commit is contained in:
parent
10ae874cb6
commit
b4ab022956
|
@ -317,8 +317,8 @@ class OptionsParser:
|
||||||
# apply indeces
|
# apply indeces
|
||||||
cur.executescript(
|
cur.executescript(
|
||||||
'''
|
'''
|
||||||
CREATE INDEX IF NOT EXISTS idx_logs_jid_id_kind ON logs (jid_id, kind);
|
CREATE INDEX 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_unread_messages_jid_id ON unread_messages (jid_id);
|
||||||
'''
|
'''
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue