(self, app_label, name, forward=True)
| 266 | return state |
| 267 | |
| 268 | def record_migration(self, app_label, name, forward=True): |
| 269 | migration = self.loader.disk_migrations.get((app_label, name)) |
| 270 | # For replacement migrations, record individual statuses |
| 271 | if migration and migration.replaces: |
| 272 | for replaced_app_label, replaced_name in migration.replaces: |
| 273 | self.record_migration(replaced_app_label, replaced_name, forward) |
| 274 | if forward: |
| 275 | self.recorder.record_applied(app_label, name) |
| 276 | else: |
| 277 | self.recorder.record_unapplied(app_label, name) |
| 278 | |
| 279 | def unapply_migration(self, state, migration, fake=False): |
| 280 | """Run a migration backwards.""" |
no test coverage detected