I created a migration that had a nullable, but then I realized that it should be default 0. Is there a way to change that with another migration.
Here is my original migration
Schema::table('items', function (Blueprint $table) {
$table->unsignedBigInteger('total')->nullable();
});
and this is the migration I'm trying to run
Schema::table('items', function (Blueprint $table) {
$table->unsignedBigInteger('total')->default(0);
});