I am using Laravel 5.2, Php7, Apache, Windows
My migration file is "2016_03_30_095234_alter_date_update_news_table.php"
class AddSlugUpdateNewsTable extends Migration
{
public function up()
{
Schema::table('news', function (Blueprint $table) {
$table->date('slug')->change();
});
}
public function down()
{
Schema::table('news', function (Blueprint $table) {
$table->dateTime('slug')->change();
});
}
}
But after starting migrate,
$\> php artisan migrate
gives me this error !
[RuntimeException] Changing the columns for the news table requires the DBAL Doctrine; set doctrine / dbal.
What am I doing?
source
share