[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Sat Aug 6 08:17:19 UTC 2011


The following commit has been merged in the debian branch:
commit 1a9799b6e7514ea063d5e78ffa9f1b1ba9ac160a
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Fri Jul 10 10:05:42 2009 +0200

    opimd: SQLite-Calls: add IF NOT EXISTS when adding index to database

diff --git a/framework/subsystems/opimd/pimb_sqlite_calls.py b/framework/subsystems/opimd/pimb_sqlite_calls.py
index 4bccd01..dbcdc44 100644
--- a/framework/subsystems/opimd/pimb_sqlite_calls.py
+++ b/framework/subsystems/opimd/pimb_sqlite_calls.py
@@ -76,7 +76,7 @@ class SQLiteCallBackend(Backend):
 
             cur.execute("CREATE TABLE IF NOT EXISTS call_values (id INTEGER PRIMARY KEY, callId INTEGER, Field TEXT, Value TEXT)")
 
-            cur.execute("CREATE INDEX calls_Direction_idx ON calls (Direction)") # TODO: make more indexes, also in others SQLite backends
+            cur.execute("CREATE INDEX IF NOT EXISTS calls_Direction_idx ON calls (Direction)") # TODO: make more indexes, also in others SQLite backends
 
             self.con.text_factory = sqlite3.OptimizedUnicode
             self.con.commit()

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list