使用 Xethron/migrations-generator laravel 5.6 后的迁移
Migration after using Xethron/migrations-generator laravel 5.6
我使用了包 Xethron/migrations-generator,用于从现有数据库生成迁移,他工作得很好!
但是当我想向 table 添加一列之后,我已经像这样编辑了相应的迁移文件:
Schema::table('ville', function (Blueprint $table) {
$table->double('lng')->nullable();
$table->double('lat')->nullable();
});
并执行此命令:
php artisan migrate
我收到了这个错误:
enter image description here
运行 php artisan migrate:refresh
我使用了包 Xethron/migrations-generator,用于从现有数据库生成迁移,他工作得很好! 但是当我想向 table 添加一列之后,我已经像这样编辑了相应的迁移文件:
Schema::table('ville', function (Blueprint $table) {
$table->double('lng')->nullable();
$table->double('lat')->nullable();
});
并执行此命令:
php artisan migrate
我收到了这个错误:
enter image description here
运行 php artisan migrate:refresh