开发者

Changing the encoding of a table with django+south migrations using --auto

开发者 https://www.devze.com 2023-01-11 02:56 出处:网络
Django newbie here I know that 开发者_StackOverflow中文版I can change the encoding of a table by writing my own south migration.

Django newbie here

I know that 开发者_StackOverflow中文版I can change the encoding of a table by writing my own south migration.

My question is, is there a way doing it by changing my model and using

./manage.py schemamigration my_app --auto

?


AFAIK, there is no such thing as charset modification migration, as charset depends on deployment and thus is settings option.

Thus, You must crate the migration manually (so probably without --auto and using raw SQL).

0

精彩评论

暂无评论...
验证码 换一张
取 消