migration problem on mysql

11 views
Skip to first unread message

冯炜尧

unread,
Aug 2, 2017, 11:55:28 AM8/2/17
to Django users
if your database default charset is different than your database charset, 
and you have a model whose id is varchar, 
and you want to reference this model as foreignKey,  
then you would probably fail on the migration
with error as `1215, u'Cannot add foreign key constraint'`
Reply all
Reply to author
Forward
0 new messages