【发布时间】:2021-01-05 18:43:29
【问题描述】:
我创建了一些简单的表格,其中包含manytoone 关系。我尝试使用学说生成迁移,使用以下命令:
php bin/console make:migration
我的数据库目前是空的,里面没有表。不幸的是,我收到了这个错误:
Sqlite platform does not support alter foreign key, the table must be fully recreated using getAlterTableSQL.
我不知道如何解决这个问题,以及在生成迁移时如何调用getAlterTableSQL。
【问题讨论】:
标签: php sqlite symfony doctrine