Add sheet_total column to score_sheets table

This commit is contained in:
Matt Young 2025-06-10 23:46:49 -05:00
parent 6b42f2c1fb
commit 13ca712ce9
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('score_sheets', function (Blueprint $table) {
$table->decimal('sheet_total', 9, 6)->after('subscores');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('score_sheets', function (Blueprint $table) {
$table->dropColumn('sheet_total');
});
}
};