报错提示
D:\phpstudy_pro\WWW\laravel-admin\laravel>php artisan migrate
Nothing to migrate.
我出现这种报错的情况这样的,我新建了一个migration,成功执行了php artisan migrate,但是后来发现有问题,删除了数据表重新运行php artisan migrate,就出现了这样的错误。
原因:执行过一次后,在数据库的数据表里有这么一张migrations表,表里有这么一行。


这里记录了你这个文件已经迁移过了,所以不会再进行迁移了,删掉你那一行记录就可以重新执行了。
网友评论