在运行migrate的时候遭遇报错,错误信息是:“sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column 'todos.list_id' could not find table 'todolist' with which to generate a foreign key to target column 'id'”

参考了网友的解答:https://blog.youkuaiyun.com/qq_38217864/article/details/104562106 得知应当修改文件名。
即:

问题得以解决
本文详细解析了在使用SQLAlchemy进行数据库迁移时遇到的NoReferencedTableError错误,并分享了一个有效的解决方案,即通过修改文件名来修复外键关联问题。
4332

被折叠的 条评论
为什么被折叠?



