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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -