python - Modifying CharacterSet Collations in Django -
i adding new model existing application. model has one-to-one relationship field has collation utf8_bin. while django creates model using utf8_unicode_ci. previous model edited during application initialization in db level, if want migrate , edit , doesn't seem right. more over,because when django migrates. does
create table
alter table - add fk --> fails because of collation mismatch.
can somehow edit migration, can run sql query modify collation between create table , alter table? or maybe add default collation model? not want edit whole database's default collation.
Comments
Post a Comment