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'`
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6ff7a3e0-6fce-4b1c-97e1-460babae9021%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment