summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-10 16:51:34 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-10 16:51:34 +0100
commitd3b6bcaf493f19971d1a3401a0720daac82c9410 (patch)
tree13b1c6cce219d8ae609bf7a10dcef5fb55b44f76
parent4820673df0a122cf81c3657aa427045ad9de4818 (diff)
downloadjoblib-d3b6bcaf493f19971d1a3401a0720daac82c9410.tar.gz
joblib-d3b6bcaf493f19971d1a3401a0720daac82c9410.zip
create index on id
-rw-r--r--joblib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/joblib.py b/joblib.py
index 40ba814..0c529ea 100644
--- a/joblib.py
+++ b/joblib.py
@@ -33,7 +33,7 @@ class JobQueue(object):
await con.execute("""
CREATE TABLE IF NOT EXISTS
jobs (
- id SERIAL,
+ id SERIAL PRIMARY KEY,
priority INT DEFAULT 0,
status TEXT DEFAULT 'open',
type TEXT,