Skip to content

Commit

Permalink
[result][database] Set max varchar size to 155 to deal with MySQL bra…
Browse files Browse the repository at this point in the history
…in damage. Closes #1748
  • Loading branch information
ask committed Mar 5, 2016
1 parent beb450b commit fa18204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions celery/backends/database/models.py
Expand Up @@ -28,7 +28,7 @@ class Task(ResultModelBase):
id = sa.Column(sa.Integer, sa.Sequence('task_id_sequence'),
primary_key=True,
autoincrement=True)
task_id = sa.Column(sa.String(255), unique=True)
task_id = sa.Column(sa.String(155), unique=True)
status = sa.Column(sa.String(50), default=states.PENDING)
result = sa.Column(PickleType, nullable=True)
date_done = sa.Column(sa.DateTime, default=datetime.utcnow,
Expand Down Expand Up @@ -56,7 +56,7 @@ class TaskSet(ResultModelBase):

id = sa.Column(sa.Integer, sa.Sequence('taskset_id_sequence'),
autoincrement=True, primary_key=True)
taskset_id = sa.Column(sa.String(255), unique=True)
taskset_id = sa.Column(sa.String(155), unique=True)
result = sa.Column(PickleType, nullable=True)
date_done = sa.Column(sa.DateTime, default=datetime.utcnow,
nullable=True)
Expand Down

0 comments on commit fa18204

Please sign in to comment.