# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
import django_extensions.db.fields


class Migration(migrations.Migration):

    dependencies = [
        ('tasks', '0005_auto_make_django_task_user_optional'),
    ]

    operations = [
        migrations.AlterField(
            model_name='djangotask',
            name='celery_task_id',
            field=django_extensions.db.fields.UUIDField(blank=True, editable=False, unique=True, verbose_name='Celery task id'),
        ),
        migrations.RunSQL(
            """ALTER TABLE "tasks_djangotask" ALTER COLUMN "celery_task_id" TYPE varchar(36)""",
            """ALTER TABLE "tasks_djangotask" ALTER COLUMN "celery_task_id"
            TYPE uuid USING celery_task_id::uuid
            """
        ),


    ]
