tests/migrations/test_migrations_plan/0005_fifth.py
raw| 1 | from django.db import migrations |
| 2 | |
| 3 | |
| 4 | def grow_tail(x, y): |
| 5 | pass |
| 6 | |
| 7 | |
| 8 | def feed(x, y): |
| 9 | """Feed salamander.""" |
| 10 | pass |
| 11 | |
| 12 | |
| 13 | class Migration(migrations.Migration): |
| 14 | dependencies = [ |
| 15 | ("migrations", "0004_fourth"), |
| 16 | ] |
| 17 | |
| 18 | operations = [ |
| 19 | migrations.RunPython(migrations.RunPython.noop), |
| 20 | migrations.RunPython(grow_tail), |
| 21 | migrations.RunPython(feed, migrations.RunPython.noop), |
| 22 | ] |