当我试图创建一个数据库模式迁移时,我得到了这个奇怪的错误。你能帮我找出出了什么问题吗?$ python app.py db upgradesqlalchemy.exc.ArgumentError: Mapper Mapper|EssayStateAssociationsessay_associations could not assemble any primary key columns for mapped table 'essay_associations'
我的模型
我正在尝试进行房间迁移,并添加一个带有索引的新表,但失败了。database.execSQL("CREATE INDEX `index_ring_bellScheduleCode` ON `ring`(`bellScheduleCode`)")} 在运行此迁移测试时,我得到的输出对我来说并不完全有意义。onUpdate='CASCADE', columnNames=[bellScheduleCode], referenceColumnNames=[code]}], indices=[]}
注意,我使用的是PostGresql,这样我就可以使用模式。我转到Heroku页面,介绍如何将我的DB推送到服务器上。> heroku db:push"PGError: ERROR: relation "schema_migrations" does not exist"
我想知道的是两倍..在一个次要的层面上,我想知道为什么会发生这种情况。我的</e