vkk.migrations.0006_periodclosure_is_closed_manager_and_more

 1# Generated by Django 4.1.5 on 2023-01-26 12:20
 2
 3from django.db import migrations, models
 4
 5
 6class Migration(migrations.Migration):
 7
 8    dependencies = [
 9        ('vkk', '0005_rename_is_closed_periodclosure_is_closed_contributor'),
10    ]
11
12    operations = [
13        migrations.AddField(
14            model_name='periodclosure',
15            name='is_closed_manager',
16            field=models.BooleanField(default=False, verbose_name='closed for manager'),
17        ),
18        migrations.AlterField(
19            model_name='periodclosure',
20            name='is_closed_contributor',
21            field=models.BooleanField(default=False, verbose_name='closed for contributor'),
22        ),
23    ]
class Migration(django.db.migrations.migration.Migration):
 7class Migration(migrations.Migration):
 8
 9    dependencies = [
10        ('vkk', '0005_rename_is_closed_periodclosure_is_closed_contributor'),
11    ]
12
13    operations = [
14        migrations.AddField(
15            model_name='periodclosure',
16            name='is_closed_manager',
17            field=models.BooleanField(default=False, verbose_name='closed for manager'),
18        ),
19        migrations.AlterField(
20            model_name='periodclosure',
21            name='is_closed_contributor',
22            field=models.BooleanField(default=False, verbose_name='closed for contributor'),
23        ),
24    ]

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 = [('vkk', '0005_rename_is_closed_periodclosure_is_closed_contributor')]
operations = [<AddField model_name='periodclosure', name='is_closed_manager', field=<django.db.models.fields.BooleanField>>, <AlterField model_name='periodclosure', name='is_closed_contributor', field=<django.db.models.fields.BooleanField>>]
Inherited Members
django.db.migrations.migration.Migration
Migration
run_before
replaces
initial
atomic
name
app_label
mutate_state
apply
unapply
suggest_name