From b4ab02295600024ef1080fd1e52be9d2d483f05e Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 7 Oct 2006 14:48:01 +0000 Subject: [PATCH] IF NOT EXISTS does not work for all systems [some sqlite pysqlite stuff]. avoid it --- src/common/optparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/optparser.py b/src/common/optparser.py index f701e1545..7d381afe9 100644 --- a/src/common/optparser.py +++ b/src/common/optparser.py @@ -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); ''' )