[英]How i can resolve migration issue if migration file does not exist but entry available in migration table
I'm currently working with Laravel in a team, and lastly, I have created a migration to change table name from 'slide' to 'slides' and also executed migration on the local environment till this point everything is good.我目前正在一个团队中使用 Laravel,最后,我创建了一个迁移以将表名从“幻灯片”更改为“幻灯片”,并且还在本地环境中执行迁移,直到此时一切都很好。 But when I switched to master branch and created a new feature branch then migration related to 'slides' table not available now but entry is available in migrations table and getting error like the following.
但是当我切换到主分支并创建一个新的功能分支时,与“幻灯片”表相关的迁移现在不可用,但迁移表中可以使用条目并出现如下错误。
include(/home/in-techouse/Projects/qidigo/qidigo/vendor/composer/../../database/migrations/2020_12_21_123136_alter_table_name_slide_to_slides.php): failed to open stream: No such file or directory
包括(/home/in-techouse/Projects/qidigo/qidigo/vendor/composer/../../database/migrations/2020_12_21_123136_alter_table_name_slide_to_slides.php):无法打开 stream:没有这样的文件或目录
What will be the best way to handle this issue?处理此问题的最佳方法是什么?
Did you merged your branch in the master?您是否将您的分支合并到 master 中? You can see the file with
ls database/migrations
?您可以使用
ls database/migrations
查看文件?
Try run composer dump-autoload
尝试运行
composer dump-autoload
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.