wip
This commit is contained in:
1 parent
7708a4a935
commit
43d1c091b3
9 files changed
+165
-344
No files matched your search
+6
-5
@@ -11,11 +11,11 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('sofa_score_player_per_seasons', function (Blueprint $table) {
|
||||
Schema::create('ss_player_seasons', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('ss_player_id')->index();
|
||||
$table->integer('ss_team_id')->index();
|
||||
$table->string('season')->index();
|
||||
$table->integer('ss_player_id')->index()->default(0);
|
||||
$table->integer('ss_team_id')->index()->default(0);
|
||||
$table->string('season')->index()->default('');
|
||||
$table->integer('total_events')->default(0)->nullable();
|
||||
$table->integer('total_min')->default(0)->nullable();
|
||||
$table->integer('average_min')->default(0)->nullable();
|
||||
@@ -29,6 +29,7 @@ return new class extends Migration
|
||||
$table->integer('offsides')->default(0)->nullable();
|
||||
$table->integer('shots_on_target')->default(0)->nullable();
|
||||
$table->integer('shots_off_target')->default(0)->nullable();
|
||||
$table->unique(['ss_player_id', 'ss_team_id', 'season']);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
@@ -38,6 +39,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sofa_score_player_per_seasons');
|
||||
Schema::dropIfExists('ss_player_seasons');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user