Verified Commit ffc3c6dd authored by Martin Petráček's avatar Martin Petráček
Browse files

monitor: make flow_id index unique

parent d447f3da
......@@ -57,7 +57,7 @@ except:
logging.debug('Error cleaning flow_id')
try:
c.execute('CREATE INDEX start ON traffic(start)')
c.execute('CREATE INDEX flow_id ON traffic(flow_id) WHERE flow_id IS NOT NULL')
c.execute('CREATE UNIQUE INDEX flow_id ON traffic(flow_id) WHERE flow_id IS NOT NULL')
except:
logging.debug('Indexes for table "traffic" already exists')
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment