Skip to content

Commit

Permalink
feat: grow shots_* to mediumint (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBotPeaches authored Aug 10, 2024
1 parent a2a5206 commit f5ed3d7
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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->mediumInteger('shots_fired')->unsigned()->change();
$table->mediumInteger('shots_landed')->unsigned()->change();
$table->mediumInteger('shots_missed')->unsigned()->change();
});
}

public function down(): void
{
Schema::table('game_players', function (Blueprint $table) {
$table->smallInteger('shots_fired')->unsigned()->change();
$table->smallInteger('shots_landed')->unsigned()->change();
$table->smallInteger('shots_missed')->unsigned()->change();
});
}
};

0 comments on commit f5ed3d7

Please sign in to comment.