laravel数据库迁移的migrate小解

当通过命令行:php artisan migrate:make create_authors_table --table=authors --create时,在 migration.php 中若Schema::table()而不是Schema::create时,会出现 table 不存在的指示,这时需要将 Schema::table 改为 Schema::create 。

有时输入:php artisan migrate 会显示其他表已存在导致无法创建新的表,这时可以将旧的 migration.php 中的 up 函数中的 Schema::create 改为 Schema::table 即可。

原文地址:https://www.cnblogs.com/linguoguo/p/4031150.html