wip
This commit is contained in:
1 parent
8f6ca51fc3
commit
3149fa6c12
4 files changed
+156
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use MongoDB\Laravel\Schema\Blueprint;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
|
||||
/**
|
||||
* Player Details
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('marcatori', function (Blueprint $collection) {
|
||||
$collection->index('match_id');
|
||||
$collection->index('player_id');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('marcatori');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user