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

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


class Migration(migrations.Migration):

    dependencies = [
        ('likes', '0004_merge'),
    ]

    operations = [
        migrations.AlterField(
            model_name='like',
            name='object_uuid',
            field=django_extensions.db.fields.UUIDField(
                editable=False,
                verbose_name='object uuid',
                help_text='The liked object uuid.',
                blank=True),
        ),

        migrations.RunSQL(
            """ALTER TABLE "likes_like" ALTER COLUMN "object_uuid" TYPE varchar(36)""",
            """ALTER TABLE "likes_like" ALTER COLUMN "object_uuid"
               TYPE uuid USING object_uuid::uuid
            """
        ),

    ]
