Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Sep 11, 2024
1 parent 26bd8bb commit be4f2b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
return new class extends Migration {
public function up(): void
{
\App\Models\Badge\Badge::whereNotNull('custom_id')->update(['custom_id' => null]);
Schema::table('badges', function (Blueprint $table) {
$table->string('custom_id')->nullable()->unique()->change();
});
Expand Down

0 comments on commit be4f2b5

Please sign in to comment.