wip
This commit is contained in:
1 parent
c394f7afba
commit
44af3f2caa
21 files changed
+222
-151
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ return new class extends Migration
|
||||
Schema::create('sofa_score_player_per_seasons', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('ss_player_id')->index();
|
||||
$table->integer('tx_team_id')->index();
|
||||
$table->integer('ss_team_id')->index();
|
||||
$table->string('season')->index();
|
||||
$table->integer('events_played_home')->default(0)->nullable();
|
||||
$table->integer('events_played_away')->default(0)->nullable();
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<?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::create('rosa_tournaments', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('rosa_tournaments');
|
||||
}
|
||||
};
|
||||
@@ -26,117 +26,117 @@ class SofaScorePlayerPositionSeeder extends Seeder
|
||||
('MR', 'Right Midfield'),
|
||||
('RW', 'Right Winger'),
|
||||
('ST', 'Centre-Forward'),
|
||||
('DC_AM', 'Centre-Back, Attacking Midfield'),
|
||||
('DL_AM', 'Left-Back, Attacking Midfield'),
|
||||
('DM_AM', 'Defensive Midfield, Attacking Midfield'),
|
||||
('DR_AM', 'Right-Back, Attacking Midfield'),
|
||||
('LW_AM', 'Left Winger, Attacking Midfield'),
|
||||
('MC_AM', 'Central Midfield, Attacking Midfield'),
|
||||
('ML_AM', 'Left Midfield, Attacking Midfield'),
|
||||
('MR_AM', 'Right Midfield, Attacking Midfield'),
|
||||
('RW_AM', 'Right Winger, Attacking Midfield'),
|
||||
('ST_AM', 'Centre-Forward, Attacking Midfield'),
|
||||
('AM_DC', 'Attacking Midfield, Centre-Back'),
|
||||
('DL_DC', 'Left-Back, Centre-Back'),
|
||||
('DM_DC', 'Defensive Midfield, Centre-Back'),
|
||||
('DR_DC', 'Right-Back, Centre-Back'),
|
||||
('LW_DC', 'Left Winger, Centre-Back'),
|
||||
('MC_DC', 'Central Midfield, Centre-Back'),
|
||||
('ML_DC', 'Left Midfield, Centre-Back'),
|
||||
('MR_DC', 'Right Midfield, Centre-Back'),
|
||||
('RW_DC', 'Right Winger, Centre-Back'),
|
||||
('ST_DC', 'Centre-Forward, Centre-Back'),
|
||||
('AM_DL', 'Attacking Midfield, Left-Back'),
|
||||
('DC_DL', 'Centre-Back, Left-Back'),
|
||||
('DM_DL', 'Defensive Midfield, Left-Back'),
|
||||
('DR_DL', 'Right-Back, Left-Back'),
|
||||
('LW_DL', 'Left Winger, Left-Back'),
|
||||
('MC_DL', 'Central Midfield, Left-Back'),
|
||||
('ML_DL', 'Left Midfield, Left-Back'),
|
||||
('MR_DL', 'Right Midfield, Left-Back'),
|
||||
('RW_DL', 'Right Winger, Left-Back'),
|
||||
('ST_DL', 'Centre-Forward, Left-Back'),
|
||||
('AM_DM', 'Attacking Midfield, Defensive Midfield'),
|
||||
('DC_DM', 'Centre-Back, Defensive Midfield'),
|
||||
('DL_DM', 'Left-Back, Defensive Midfield'),
|
||||
('DR_DM', 'Right-Back, Defensive Midfield'),
|
||||
('LW_DM', 'Left Winger, Defensive Midfield'),
|
||||
('MC_DM', 'Central Midfield, Defensive Midfield'),
|
||||
('ML_DM', 'Left Midfield, Defensive Midfield'),
|
||||
('MR_DM', 'Right Midfield, Defensive Midfield'),
|
||||
('RW_DM', 'Right Winger, Defensive Midfield'),
|
||||
('ST_DM', 'Centre-Forward, Defensive Midfield'),
|
||||
('AM_DR', 'Attacking Midfield, Right-Back'),
|
||||
('DC_DR', 'Centre-Back, Right-Back'),
|
||||
('DL_DR', 'Left-Back, Right-Back'),
|
||||
('DM_DR', 'Defensive Midfield, Right-Back'),
|
||||
('LW_DR', 'Left Winger, Right-Back'),
|
||||
('MC_DR', 'Central Midfield, Right-Back'),
|
||||
('ML_DR', 'Left Midfield, Right-Back'),
|
||||
('MR_DR', 'Right Midfield, Right-Back'),
|
||||
('RW_DR', 'Right Winger, Right-Back'),
|
||||
('ST_DR', 'Centre-Forward, Right-Back'),
|
||||
('AM_LW', 'Attacking Midfield, Left Winger'),
|
||||
('DC_LW', 'Centre-Back, Left Winger'),
|
||||
('DL_LW', 'Left-Back, Left Winger'),
|
||||
('DM_LW', 'Defensive Midfield, Left Winger'),
|
||||
('DR_LW', 'Right-Back, Left Winger'),
|
||||
('MC_LW', 'Central Midfield, Left Winger'),
|
||||
('ML_LW', 'Left Midfield, Left Winger'),
|
||||
('MR_LW', 'Right Midfield, Left Winger'),
|
||||
('RW_LW', 'Right Winger, Left Winger'),
|
||||
('ST_LW', 'Centre-Forward, Left Winger'),
|
||||
('AM_MC', 'Attacking Midfield, Central Midfield'),
|
||||
('DC_MC', 'Centre-Back, Central Midfield'),
|
||||
('DL_MC', 'Left-Back, Central Midfield'),
|
||||
('DM_MC', 'Defensive Midfield, Central Midfield'),
|
||||
('DR_MC', 'Right-Back, Central Midfield'),
|
||||
('LW_MC', 'Left Winger, Central Midfield'),
|
||||
('ML_MC', 'Left Midfield, Central Midfield'),
|
||||
('MR_MC', 'Right Midfield, Central Midfield'),
|
||||
('RW_MC', 'Right Winger, Central Midfield'),
|
||||
('ST_MC', 'Centre-Forward, Central Midfield'),
|
||||
('AM_ML', 'Attacking Midfield, Left Midfield'),
|
||||
('DC_ML', 'Centre-Back, Left Midfield'),
|
||||
('DL_ML', 'Left-Back, Left Midfield'),
|
||||
('DM_ML', 'Defensive Midfield, Left Midfield'),
|
||||
('DR_ML', 'Right-Back, Left Midfield'),
|
||||
('LW_ML', 'Left Winger, Left Midfield'),
|
||||
('MC_ML', 'Central Midfield, Left Midfield'),
|
||||
('MR_ML', 'Right Midfield, Left Midfield'),
|
||||
('RW_ML', 'Right Winger, Left Midfield'),
|
||||
('ST_ML', 'Centre-Forward, Left Midfield'),
|
||||
('AM_MR', 'Attacking Midfield, Right Midfield'),
|
||||
('DC_MR', 'Centre-Back, Right Midfield'),
|
||||
('DL_MR', 'Left-Back, Right Midfield'),
|
||||
('DM_MR', 'Defensive Midfield, Right Midfield'),
|
||||
('DR_MR', 'Right-Back, Right Midfield'),
|
||||
('LW_MR', 'Left Winger, Right Midfield'),
|
||||
('MC_MR', 'Central Midfield, Right Midfield'),
|
||||
('ML_MR', 'Left Midfield, Right Midfield'),
|
||||
('RW_MR', 'Right Winger, Right Midfield'),
|
||||
('ST_MR', 'Centre-Forward, Right Midfield'),
|
||||
('AM_RW', 'Attacking Midfield, Right Winger'),
|
||||
('DC_RW', 'Centre-Back, Right Winger'),
|
||||
('DL_RW', 'Left-Back, Right Winger'),
|
||||
('DM_RW', 'Defensive Midfield, Right Winger'),
|
||||
('DR_RW', 'Right-Back, Right Winger'),
|
||||
('LW_RW', 'Left Winger, Right Winger'),
|
||||
('MC_RW', 'Central Midfield, Right Winger'),
|
||||
('ML_RW', 'Left Midfield, Right Winger'),
|
||||
('MR_RW', 'Right Midfield, Right Winger'),
|
||||
('ST_RW', 'Centre-Forward, Right Winger'),
|
||||
('AM_ST', 'Attacking Midfield, Centre-Forward'),
|
||||
('DC_ST', 'Centre-Back, Centre-Forward'),
|
||||
('DL_ST', 'Left-Back, Centre-Forward'),
|
||||
('DM_ST', 'Defensive Midfield, Centre-Forward'),
|
||||
('DR_ST', 'Right-Back, Centre-Forward'),
|
||||
('LW_ST', 'Left Winger, Centre-Forward'),
|
||||
('MC_ST', 'Central Midfield, Centre-Forward'),
|
||||
('ML_ST', 'Left Midfield, Centre-Forward'),
|
||||
('MR_ST', 'Right Midfield, Centre-Forward'),
|
||||
('RW_ST', 'Right Winger, Centre-Forward');
|
||||
";
|
||||
('DC-AM', 'Centre-Back, Attacking Midfield'),
|
||||
('DL-AM', 'Left-Back, Attacking Midfield'),
|
||||
('DM-AM', 'Defensive Midfield, Attacking Midfield'),
|
||||
('DR-AM', 'Right-Back, Attacking Midfield'),
|
||||
('LW-AM', 'Left Winger, Attacking Midfield'),
|
||||
('MC-AM', 'Central Midfield, Attacking Midfield'),
|
||||
('ML-AM', 'Left Midfield, Attacking Midfield'),
|
||||
('MR-AM', 'Right Midfield, Attacking Midfield'),
|
||||
('RW-AM', 'Right Winger, Attacking Midfield'),
|
||||
('ST-AM', 'Centre-Forward, Attacking Midfield'),
|
||||
('AM-DC', 'Attacking Midfield, Centre-Back'),
|
||||
('DL-DC', 'Left-Back, Centre-Back'),
|
||||
('DM-DC', 'Defensive Midfield, Centre-Back'),
|
||||
('DR-DC', 'Right-Back, Centre-Back'),
|
||||
('LW-DC', 'Left Winger, Centre-Back'),
|
||||
('MC-DC', 'Central Midfield, Centre-Back'),
|
||||
('ML-DC', 'Left Midfield, Centre-Back'),
|
||||
('MR-DC', 'Right Midfield, Centre-Back'),
|
||||
('RW-DC', 'Right Winger, Centre-Back'),
|
||||
('ST-DC', 'Centre-Forward, Centre-Back'),
|
||||
('AM-DL', 'Attacking Midfield, Left-Back'),
|
||||
('DC-DL', 'Centre-Back, Left-Back'),
|
||||
('DM-DL', 'Defensive Midfield, Left-Back'),
|
||||
('DR-DL', 'Right-Back, Left-Back'),
|
||||
('LW-DL', 'Left Winger, Left-Back'),
|
||||
('MC-DL', 'Central Midfield, Left-Back'),
|
||||
('ML-DL', 'Left Midfield, Left-Back'),
|
||||
('MR-DL', 'Right Midfield, Left-Back'),
|
||||
('RW-DL', 'Right Winger, Left-Back'),
|
||||
('ST-DL', 'Centre-Forward, Left-Back'),
|
||||
('AM-DM', 'Attacking Midfield, Defensive Midfield'),
|
||||
('DC-DM', 'Centre-Back, Defensive Midfield'),
|
||||
('DL-DM', 'Left-Back, Defensive Midfield'),
|
||||
('DR-DM', 'Right-Back, Defensive Midfield'),
|
||||
('LW-DM', 'Left Winger, Defensive Midfield'),
|
||||
('MC-DM', 'Central Midfield, Defensive Midfield'),
|
||||
('ML-DM', 'Left Midfield, Defensive Midfield'),
|
||||
('MR-DM', 'Right Midfield, Defensive Midfield'),
|
||||
('RW-DM', 'Right Winger, Defensive Midfield'),
|
||||
('ST-DM', 'Centre-Forward, Defensive Midfield'),
|
||||
('AM-DR', 'Attacking Midfield, Right-Back'),
|
||||
('DC-DR', 'Centre-Back, Right-Back'),
|
||||
('DL-DR', 'Left-Back, Right-Back'),
|
||||
('DM-DR', 'Defensive Midfield, Right-Back'),
|
||||
('LW-DR', 'Left Winger, Right-Back'),
|
||||
('MC-DR', 'Central Midfield, Right-Back'),
|
||||
('ML-DR', 'Left Midfield, Right-Back'),
|
||||
('MR-DR', 'Right Midfield, Right-Back'),
|
||||
('RW-DR', 'Right Winger, Right-Back'),
|
||||
('ST-DR', 'Centre-Forward, Right-Back'),
|
||||
('AM-LW', 'Attacking Midfield, Left Winger'),
|
||||
('DC-LW', 'Centre-Back, Left Winger'),
|
||||
('DL-LW', 'Left-Back, Left Winger'),
|
||||
('DM-LW', 'Defensive Midfield, Left Winger'),
|
||||
('DR-LW', 'Right-Back, Left Winger'),
|
||||
('MC-LW', 'Central Midfield, Left Winger'),
|
||||
('ML-LW', 'Left Midfield, Left Winger'),
|
||||
('MR-LW', 'Right Midfield, Left Winger'),
|
||||
('RW-LW', 'Right Winger, Left Winger'),
|
||||
('ST-LW', 'Centre-Forward, Left Winger'),
|
||||
('AM-MC', 'Attacking Midfield, Central Midfield'),
|
||||
('DC-MC', 'Centre-Back, Central Midfield'),
|
||||
('DL-MC', 'Left-Back, Central Midfield'),
|
||||
('DM-MC', 'Defensive Midfield, Central Midfield'),
|
||||
('DR-MC', 'Right-Back, Central Midfield'),
|
||||
('LW-MC', 'Left Winger, Central Midfield'),
|
||||
('ML-MC', 'Left Midfield, Central Midfield'),
|
||||
('MR-MC', 'Right Midfield, Central Midfield'),
|
||||
('RW-MC', 'Right Winger, Central Midfield'),
|
||||
('ST-MC', 'Centre-Forward, Central Midfield'),
|
||||
('AM-ML', 'Attacking Midfield, Left Midfield'),
|
||||
('DC-ML', 'Centre-Back, Left Midfield'),
|
||||
('DL-ML', 'Left-Back, Left Midfield'),
|
||||
('DM-ML', 'Defensive Midfield, Left Midfield'),
|
||||
('DR-ML', 'Right-Back, Left Midfield'),
|
||||
('LW-ML', 'Left Winger, Left Midfield'),
|
||||
('MC-ML', 'Central Midfield, Left Midfield'),
|
||||
('MR-ML', 'Right Midfield, Left Midfield'),
|
||||
('RW-ML', 'Right Winger, Left Midfield'),
|
||||
('ST-ML', 'Centre-Forward, Left Midfield'),
|
||||
('AM-MR', 'Attacking Midfield, Right Midfield'),
|
||||
('DC-MR', 'Centre-Back, Right Midfield'),
|
||||
('DL-MR', 'Left-Back, Right Midfield'),
|
||||
('DM-MR', 'Defensive Midfield, Right Midfield'),
|
||||
('DR-MR', 'Right-Back, Right Midfield'),
|
||||
('LW-MR', 'Left Winger, Right Midfield'),
|
||||
('MC-MR', 'Central Midfield, Right Midfield'),
|
||||
('ML-MR', 'Left Midfield, Right Midfield'),
|
||||
('RW-MR', 'Right Winger, Right Midfield'),
|
||||
('ST-MR', 'Centre-Forward, Right Midfield'),
|
||||
('AM-RW', 'Attacking Midfield, Right Winger'),
|
||||
('DC-RW', 'Centre-Back, Right Winger'),
|
||||
('DL-RW', 'Left-Back, Right Winger'),
|
||||
('DM-RW', 'Defensive Midfield, Right Winger'),
|
||||
('DR-RW', 'Right-Back, Right Winger'),
|
||||
('LW-RW', 'Left Winger, Right Winger'),
|
||||
('MC-RW', 'Central Midfield, Right Winger'),
|
||||
('ML-RW', 'Left Midfield, Right Winger'),
|
||||
('MR-RW', 'Right Midfield, Right Winger'),
|
||||
('ST-RW', 'Centre-Forward, Right Winger'),
|
||||
('AM-ST', 'Attacking Midfield, Centre-Forward'),
|
||||
('DC-ST', 'Centre-Back, Centre-Forward'),
|
||||
('DL-ST', 'Left-Back, Centre-Forward'),
|
||||
('DM-ST', 'Defensive Midfield, Centre-Forward'),
|
||||
('DR-ST', 'Right-Back, Centre-Forward'),
|
||||
('LW-ST', 'Left Winger, Centre-Forward'),
|
||||
('MC-ST', 'Central Midfield, Centre-Forward'),
|
||||
('ML-ST', 'Left Midfield, Centre-Forward'),
|
||||
('MR-ST', 'Right Midfield, Centre-Forward'),
|
||||
('RW-ST', 'Right Winger, Centre-Forward');
|
||||
";
|
||||
DB::unprepared($sql);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user