我正在尝试在Symfony 4应用程序上运行迁移,总共进行271个迁移。但是,这样做时会跳过前41个迁移(第一个是Version20180921083101)。
>>> php bin/console doctrine:migrations:status
== Configuration
>> Name: Application Migrations
>> Database Driver: pdo_mysql
>> Database Host: db
>> Database Name: test
>> Configuration Source: manually configured
>> Version Table Name: migration_versions
>> Version Column Name: version
>> Migrations Namespace: DoctrineMigrations
>> Migrations Directory: /var/www/src/Migrations
>> Previous Version: Already at first version
>> Current Version: 0
>> Next Version: 2018-11-14 06:38:03 (20181114063803)
>> Latest Version: 2020-01-27 05:06:49 (20200127050649)
>> Executed Migrations: 0
>> Executed Unavailable Migrations: 0
>> Available Migrations: 230
>> New Migrations: 230
我正在尝试更新架构,清除缓存以及删除/重新创建数据库,但是没有成功。我还尝试通过运行以下命令仅执行第一个:
>>> php bin/console doctrine:migrations:migrate Version20180921083101
Application Migrations
Unknown version: Version20180921083101
似乎无法识别版本20181114063803之前的那些版本。我已经在这个问题上苦苦挣扎了一段时间,并且花了很多时间尝试,所以任何帮助或指示都将受到高度赞赏。谢谢!