<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeRoleIdToUsersTable extends Migration
{
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->integer('role_id')->unsigned()->default(2)->change();
});
}
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->integer('role_id')->unsigned()->default(0)->change();
});
}
}