Live application have order table.
Schema::create('order', function($table){
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->dateTime('date')->nullable();
$table->enum('status', array('CREATED','FINISHED'))->default('CREATED');
});
Now I need to update status field in that table, but I want to save old data in database. So I created one more migration which will update status field in order table.
Schema::table('order', function($table){
$table->enum('status', array('CREATED','FINISHED','CLOSED'))->default('CREATED')->change();
});
But when i run php artisan migrate
I got error saying Unknow database type enum requested, Doctrine\DBal\Platforms\MySqlPlatform may not support it.