# Generated by Django 3.0.5 on 2020-04-16 06:00

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("core", "0001_migrate_metadata"),
        ("auth", "0011_update_proxy_permissions"),
        ("webhook", "0002_webhook_name"),
        ("account", "0042_merge_20200422_0555"),
    ]

    operations = [
        migrations.RenameModel(
            old_name="ServiceAccount",
            new_name="App",
        ),
        migrations.RenameModel(
            old_name="ServiceAccountToken",
            new_name="AppToken",
        ),
        migrations.AlterModelTable(
            name="app",
            table="app_app",
        ),
        migrations.AlterModelTable(
            name="apptoken",
            table="app_apptoken",
        ),
        migrations.RenameField(
            model_name="apptoken",
            old_name="service_account",
            new_name="app",
        ),
        migrations.AlterModelOptions(
            name="app",
            options={"permissions": (("manage_apps", "Manage apps"),)},
        ),
        migrations.AlterField(
            model_name="app",
            name="permissions",
            field=models.ManyToManyField(
                blank=True,
                help_text="Specific permissions for this app.",
                related_name="app_set",
                related_query_name="app",
                to="auth.Permission",
            ),
        ),
    ]
