Skip to content

Commit

Permalink
fix: score is int vs mediumint now (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored May 3, 2024
1 parent 04f4dd9 commit 1f52662
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up(): void
{
Schema::table('game_players', function (Blueprint $table) {
$table->integer('score')->nullable()->change();
});
}

public function down(): void
{
Schema::table('game_players', function (Blueprint $table) {
$table->mediumInteger('score')->nullable()->change();
});
}
};

0 comments on commit 1f52662

Please sign in to comment.