authentik.tenants.migrations.0010_delete_domain_delete_tenant

 1# Generated by Django 5.2.17 on 2026-09-21 05:51
 2
 3from django.db import migrations
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ("authentik_tenants", "0009_alter_tenant_base_url"),
10        ("authentik_admin", "0001_initial"),
11        ("authentik_tasks", "0009_remove_task_tenant"),
12    ]
13
14    operations = [
15        migrations.SeparateDatabaseAndState(
16            state_operations=[
17                migrations.DeleteModel(
18                    name="Domain",
19                ),
20                migrations.DeleteModel(
21                    name="Tenant",
22                ),
23            ],
24            database_operations=[],
25        ),
26    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ("authentik_tenants", "0009_alter_tenant_base_url"),
11        ("authentik_admin", "0001_initial"),
12        ("authentik_tasks", "0009_remove_task_tenant"),
13    ]
14
15    operations = [
16        migrations.SeparateDatabaseAndState(
17            state_operations=[
18                migrations.DeleteModel(
19                    name="Domain",
20                ),
21                migrations.DeleteModel(
22                    name="Tenant",
23                ),
24            ],
25            database_operations=[],
26        ),
27    ]

The base class for all migrations.

Migration files will import this from django.db.migrations.Migration and subclass it as a class called Migration. It will have one or more of the following attributes:

  • operations: A list of Operation instances, probably from django.db.migrations.operations
  • dependencies: A list of tuples of (app_path, migration_name)
  • run_before: A list of tuples of (app_path, migration_name)
  • replaces: A list of migration_names

Note that all migrations come out of migrations and into the Loader or Graph as instances, having been initialized with their app label and name.

dependencies = [('authentik_tenants', '0009_alter_tenant_base_url'), ('authentik_admin', '0001_initial'), ('authentik_tasks', '0009_remove_task_tenant')]
operations = [<SeparateDatabaseAndState state_operations=[<DeleteModel name='Domain'>, <DeleteModel name='Tenant'>], database_operations=[]>]