我已经迁移了现有的Laravel 5应用程序和数据库。只有没有迁移表在那里,所以我创造了这个用下面的命令:Laravel 5 - 跳过迁移
php artisan migrate:install
数据库迁移文件夹中的三个文件存在(2015_12_08_134409_create_tables_script.php,2015_12_08_134410_create_foreign.php,2015_12_08_134411_create_index.php)
里面的时候使用'php artisan migrate'再次执行migrations文件夹内的脚本。这是我想要避免的。是否有可能在Laravel的迁移表中插入记录,因此一旦'php artisan migrate'被再次执行,这些脚本就会被跳过并且新的脚本会被拾取。
你看https://laravel.com/docs/了解这些迁移5.0/migrations#database-seeding – sandeepsure