- 执行数据迁移时报如下错误
sqlalchemy.exc.IntegrityError: (pymysql.err.IntegrityError) (1215, 'Cannot add foreign key constraint')
解决方案:
创建外键的字段类型和表原有的字段类型不匹配
sqlalchemy.exc.IntegrityError: (pymysql.err.IntegrityError) (1215, 'Cannot add foreign key constraint')
解决方案:
创建外键的字段类型和表原有的字段类型不匹配