Commit add87a4e authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

[schema] CeleryTask: add unique constraint on task_id

bump version to 0.4.0.dev0
parent 98c0d45fd271
......@@ -9,8 +9,8 @@ from glob import glob
modname = 'celerytask'
distname = 'cubicweb-celerytask'
numversion = (0, 3, 1)
version = '.'.join(str(num) for num in numversion)
numversion = (0, 4, 0)
version = '.'.join(str(num) for num in numversion) + '.dev0'
license = 'LGPL'
author = 'LOGILAB S.A. (Paris, FRANCE)'
......
sync_schema_props_perms('CeleryTask')
......@@ -24,7 +24,7 @@ from cubicweb.schema import WorkflowableEntityType
class CeleryTask(WorkflowableEntityType):
task_id = String(maxsize=40, required=False, indexed=True)
task_id = String(maxsize=40, required=False, indexed=True, unique=True)
task_name = String(required=True)
task_logs = Bytes()
......
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