python - Changing the encoding of a table with django+south migrations -
Genzo and South Newbie here
I need to change the encoding of a table, Also does one know how to do this by using migration?
I think the solution would be database-specific, for example, for a MySQL database: south V2 import db to south.v2 import schema migration class migration (schemmaagination): def further (self, or): db.execute ('alter table apjem_model name charset = utf 8') db.xacute (field filter by changing alter table ipm_modelname) = UTF8 ') # and any other four or text column behind the back (def Auto, ORM): db.execute ('table app name_model name change charset = latin1') db.execute ('alter table ipm_model nameName field name charset = latin1') # and for any other four or text column AT at at Apne = ['appname']
Comments
Post a Comment