我试图在一次迁移中更改表reserves
中一列的最大长度.代码如下所示:
public function up()
{
//
Schema::table('reserves', function($table){
$table->string("mobile", 11)->change();
});
}
But when running the migration via artisan, it throws an exception and says:
[RuntimeException] Changing columns for table "reserves" requires Doctrine DBAL; install "doctrine/dbal".
问题是什么?我该如何解决?