Backwards migration with Django South

后端 未结 3 1371
悲哀的现实
悲哀的现实 2020-12-07 07:15

Ok, so this seems like a really silly thing to ask, and I\'m sure I\'m missing something somewhere.

How do you perform a backwards migration using South on Django?

3条回答
  •  Happy的楠姐
    2020-12-07 07:17

    Just in case someone (like me) wondered how to migrate back from initial (0001):

    django-admin.py migrate some_app zero
    

    output:

    Running migrations for some_app:
     - Migrating backwards to zero state.
     < some_app:0001_initial
    

    "zero" is a special state before any migration.

    Reference: http://south.aeracode.org/docs/commands.html

提交回复
热议问题