accounts.migrations.0010_user_current_ward
1# Generated by Django 5.2.2 on 2025-06-16 14:44 2 3import django.db.models.deletion 4from django.db import migrations, models 5 6 7class Migration(migrations.Migration): 8 9 dependencies = [ 10 ('accounts', '0009_auto_20250610_1653'), 11 ('management', '0004_ward_created_by'), 12 ] 13 14 operations = [ 15 migrations.AddField( 16 model_name='user', 17 name='current_ward', 18 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='management.ward'), 19 ), 20 ]
class
Migration(django.db.migrations.migration.Migration):
8class Migration(migrations.Migration): 9 10 dependencies = [ 11 ('accounts', '0009_auto_20250610_1653'), 12 ('management', '0004_ward_created_by'), 13 ] 14 15 operations = [ 16 migrations.AddField( 17 model_name='user', 18 name='current_ward', 19 field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='management.ward'), 20 ), 21 ]
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.