Erweiterte Spielerstatistiken: 7-Meter, Strafen, Spielzeit
Neue Metriken für Jugendhandball: 7m-Würfe/-Tore, Gelbe Karten, 2-Minuten-Strafen und Spielzeit. Migration, Model, Controller, Views und Übersetzungen (6 Sprachen) vollständig implementiert. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
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('event_player_stats', function (Blueprint $table) {
|
||||
$table->unsignedSmallInteger('penalty_goals')->nullable()->after('shots');
|
||||
$table->unsignedSmallInteger('penalty_shots')->nullable()->after('penalty_goals');
|
||||
$table->unsignedTinyInteger('yellow_cards')->nullable()->after('penalty_shots');
|
||||
$table->unsignedTinyInteger('two_minute_suspensions')->nullable()->after('yellow_cards');
|
||||
$table->unsignedSmallInteger('playing_time_minutes')->nullable()->after('two_minute_suspensions');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('event_player_stats', function (Blueprint $table) {
|
||||
$table->dropColumn(['penalty_goals', 'penalty_shots', 'yellow_cards', 'two_minute_suspensions', 'playing_time_minutes']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user