class documentation

class Migration(migrations.Migration):

View In Hierarchy

Undocumented

Class Variable dependencies Undocumented
Class Variable operations Undocumented

Inherited from Migration:

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method apply Take a project_state representing all migrations prior to this one and a schema_editor for a live database and apply the migration in a forwards order.
Method mutate​_state Take a ProjectState and return a new one with the migration's operations applied to it. Preserve the original object state by default and return a mutated state from a copy.
Method suggest​_name Suggest a name for the operations this migration might represent. Names are not guaranteed to be unique, but put some effort into the fallback name to avoid VCS conflicts if possible.
Method unapply Take a project_state representing all migrations prior to this one and a schema_editor for a live database and apply the migration in a reverse order.
Class Variable atomic Undocumented
Class Variable initial Undocumented
Instance Variable app​_label Undocumented
Instance Variable name Undocumented
Instance Variable replaces Undocumented
Instance Variable run​_before Undocumented
dependencies =
operations =