aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2025_03_06_091820_create_players_table.php
diff options
context:
space:
mode:
Diffstat (limited to 'database/migrations/2025_03_06_091820_create_players_table.php')
-rw-r--r--database/migrations/2025_03_06_091820_create_players_table.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/database/migrations/2025_03_06_091820_create_players_table.php b/database/migrations/2025_03_06_091820_create_players_table.php
deleted file mode 100644
index d078edf..0000000
--- a/database/migrations/2025_03_06_091820_create_players_table.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?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('players', function (Blueprint $table) {
- $table->id();
- $table->timestamps();
- $table->string('name');
- $table->string('team');
- $table->integer('score');
- });
-
- Schema::create('sessions', function (Blueprint $table) {
- $table->string('id')->primary();
- $table->foreignId('user_id')->nullable()->index();
- $table->string('ip_address', 45)->nullable();
- $table->text('user_agent')->nullable();
- $table->longText('payload');
- $table->integer('last_activity')->index();
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('players');
- Schema::dropIfExists('sessions');
- }
-};