aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-04-26 15:33:15 +1000
committerTerry Truong <terry06890@gmail.com>2022-04-26 18:03:56 +1000
commit46891ca052e6049252a560895af55301f5e37b19 (patch)
tree5dcac087c16845f02a10af36ebdbb34871e55fb1 /backend
parentde55b59141a82c68b6a5b360d6f57a7e760e2fd6 (diff)
Add small sqrLayout optimisation
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/data/otolToSqlite.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/backend/data/otolToSqlite.py b/backend/data/otolToSqlite.py
index 187e224..c393474 100755
--- a/backend/data/otolToSqlite.py
+++ b/backend/data/otolToSqlite.py
@@ -223,6 +223,5 @@ cur = con.cursor()
cur.execute("CREATE TABLE nodes (name TEXT PRIMARY KEY, data TEXT)")
for name in nodeMap.keys():
cur.execute("INSERT INTO nodes VALUES (?, ?)", (name, json.dumps(nodeMap[name])))
-cur.execute("CREATE UNIQUE INDEX nodes_idx on nodes(name)")
con.commit()
con.close()