raise MigrationSchemaMissing(“Unable to create the django_migrations table (%s)” % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1064, “You h ave an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right synta x to use near ‘(6) NOT NULL)’ at line 1”))
Django 在数据库迁移时报以上错误。
python manage.py migrate
原因:
查看你的Django2.1版本、MySQL5.5版本,
Django2.1不再支持MySQL5.5,必须5.6版本以上
解决办法:
要么降低Django版本 要么升级MySQL5.5版本