authentik.brands.migrations.0016_brand_branding_map_tiles
1from django.db import migrations, models 2 3 4class Migration(migrations.Migration): 5 dependencies = [ 6 ("authentik_brands", "0015_brand_flow_user_switch"), 7 ] 8 9 operations = [ 10 migrations.AddField( 11 model_name="brand", 12 name="branding_map_tiles", 13 field=models.TextField( 14 blank=True, 15 default="", 16 help_text=( 17 "URL template for the vector tile source used by the events map. " 18 "Supports XYZ templates with {z}, {x} and {y} placeholders, or " 19 "pmtiles:// archive URLs. When empty, the frontend uses the " 20 "bundled hexworld basemap. This value is part of the brand " 21 "information served to unauthenticated clients; do not embed API " 22 "keys or other credentials in it." 23 ), 24 ), 25 ), 26 ]
class
Migration(django.db.migrations.migration.Migration):
5class Migration(migrations.Migration): 6 dependencies = [ 7 ("authentik_brands", "0015_brand_flow_user_switch"), 8 ] 9 10 operations = [ 11 migrations.AddField( 12 model_name="brand", 13 name="branding_map_tiles", 14 field=models.TextField( 15 blank=True, 16 default="", 17 help_text=( 18 "URL template for the vector tile source used by the events map. " 19 "Supports XYZ templates with {z}, {x} and {y} placeholders, or " 20 "pmtiles:// archive URLs. When empty, the frontend uses the " 21 "bundled hexworld basemap. This value is part of the brand " 22 "information served to unauthenticated clients; do not embed API " 23 "keys or other credentials in it." 24 ), 25 ), 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.