# Generated by Django 3.2.12 on 2022-09-05 15:00

from django.db import migrations

from debusine.db import models


def create_default_store(apps, schema_editor):
    FileStore = apps.get_model("db", "FileStore")

    FileStore.objects.create(
        name=models.DEFAULT_FILE_STORE_NAME,
        backend=models._FileStoreBackendChoices.LOCAL,
        configuration={},
    )


class Migration(migrations.Migration):
    dependencies = [
        ('db', '0001_initial'),
    ]

    operations = [migrations.RunPython(create_default_store)]
