# Generated by Orhideous

from django.db import migrations


def create_wardrobe(apps, schema_editor):
    Player = apps.get_model('lavender', 'Player')
    Wardrobe = apps.get_model('lavender', 'Wardrobe')
    for player in Player.objects.filter(wardrobe__isnull=True).all():
        wardrobe = Wardrobe(player=player)
        wardrobe.save()


class Migration(migrations.Migration):

    dependencies = [
        ('lavender', '0011_alter_token_uuid_field'),
    ]

    operations = [
        migrations.RunPython(create_wardrobe)
    ]
