Laravel migrations change default value of column
I have a table with a default value already assigned. For an example we can look at the following: Schema::create(‘users’, function (Blueprint $table) { $table->increments(‘id’)->unsigned(); $table->integer(‘active’)->default(1); }); I now want to change my default value on the active field. I am expecting to do something like this: if (Schema::hasTable(‘users’)) { Schema::table(‘users’, function (Blueprint $table) { … Read more