berhoel.django.media_ooimport.migrations.0001_initial.Migration.unapply

Migration.unapply(self, project_state, schema_editor, collect_sql=False)[source]

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.

The backwards migration process consists of two phases:

  1. The intermediate states from right before the first until right after the last operation inside this migration are preserved.

  2. The operations are applied in reverse order using the states recorded in step 1.