문제

I am using south in my Django application and can't understand one thing. I have changed one field from IntegerField to CharField and made after it : manage.py app_name --auto --update. Then I looked at the list of migrations and saw that this migration has number 0014. But when I do manage.py app_name migrate south tries to migrate version 0004. How to specify 0014?

도움이 되었습니까?

해결책

I assume you meant:

manage.py schemamigration app_name --auto --update

not

manage.py app_name --auto --update

You can specify a version with the migrate:

./manage.py migrate app_name 0014

or the full version name:

./manage.py migrate myapp 0014_change_charfield...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top