From 407e07c9ee71ffc35b9401c8a1100279dd4d89bd Mon Sep 17 00:00:00 2001 From: Xinecraft Date: Thu, 5 Dec 2024 20:33:04 +0530 Subject: [PATCH] fix mariadb timestamp column bulshit --- ...2021_11_21_084550_create_minecraft_player_sessions_table.php | 2 +- ...021_11_21_085347_create_minecraft_player_pvp_kills_table.php | 2 +- ...021_11_21_085403_create_minecraft_player_mob_kills_table.php | 2 +- .../2021_11_21_095010_create_minecraft_player_deaths_table.php | 2 +- .../2023_07_26_021416_update_minecraft_players_table.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/database/migrations/2021_11_21_084550_create_minecraft_player_sessions_table.php b/database/migrations/2021_11_21_084550_create_minecraft_player_sessions_table.php index 4660645eb..b9f2e9401 100644 --- a/database/migrations/2021_11_21_084550_create_minecraft_player_sessions_table.php +++ b/database/migrations/2021_11_21_084550_create_minecraft_player_sessions_table.php @@ -19,7 +19,7 @@ public function up() $table->uuid('player_uuid')->index(); $table->string('player_username'); $table->string('player_displayname')->nullable(); - $table->timestamp('session_started_at'); + $table->timestamp('session_started_at')->nullable(); $table->timestamp('session_ended_at')->nullable(); $table->integer('mob_kills')->default(0); $table->integer('player_kills')->default(0); diff --git a/database/migrations/2021_11_21_085347_create_minecraft_player_pvp_kills_table.php b/database/migrations/2021_11_21_085347_create_minecraft_player_pvp_kills_table.php index 0e503daf0..793550005 100644 --- a/database/migrations/2021_11_21_085347_create_minecraft_player_pvp_kills_table.php +++ b/database/migrations/2021_11_21_085347_create_minecraft_player_pvp_kills_table.php @@ -19,7 +19,7 @@ public function up() $table->uuid('victim_uuid')->index(); $table->string('killer_username'); $table->string('victim_username'); - $table->timestamp('killed_at'); + $table->timestamp('killed_at')->nullable(); $table->string('weapon')->nullable(); $table->json('world_location')->nullable(); diff --git a/database/migrations/2021_11_21_085403_create_minecraft_player_mob_kills_table.php b/database/migrations/2021_11_21_085403_create_minecraft_player_mob_kills_table.php index 2b751800a..6e5f1d24b 100644 --- a/database/migrations/2021_11_21_085403_create_minecraft_player_mob_kills_table.php +++ b/database/migrations/2021_11_21_085403_create_minecraft_player_mob_kills_table.php @@ -19,7 +19,7 @@ public function up() $table->string('player_username'); $table->string('mob_id'); $table->string('mob_name'); - $table->timestamp('killed_at'); + $table->timestamp('killed_at')->nullable(); $table->string('weapon')->nullable(); $table->json('world_location')->nullable(); diff --git a/database/migrations/2021_11_21_095010_create_minecraft_player_deaths_table.php b/database/migrations/2021_11_21_095010_create_minecraft_player_deaths_table.php index 446ea35a5..40a7a5cc2 100644 --- a/database/migrations/2021_11_21_095010_create_minecraft_player_deaths_table.php +++ b/database/migrations/2021_11_21_095010_create_minecraft_player_deaths_table.php @@ -23,7 +23,7 @@ public function up() $table->string('killer_entity_id')->nullable(); // If killed by mob: Entity id $table->string('killer_entity_name')->nullable(); // If killed by mob: Entity name - $table->timestamp('died_at'); + $table->timestamp('died_at')->nullable(); $table->string('world_location')->nullable(); $table->foreignId('session_id')->constrained('minecraft_player_sessions')->onDelete('cascade'); diff --git a/database/migrations/2023_07_26_021416_update_minecraft_players_table.php b/database/migrations/2023_07_26_021416_update_minecraft_players_table.php index a5345bc06..d7279878b 100644 --- a/database/migrations/2023_07_26_021416_update_minecraft_players_table.php +++ b/database/migrations/2023_07_26_021416_update_minecraft_players_table.php @@ -50,7 +50,7 @@ public function up(): void $table->double('pvp_damage_given')->nullable()->default(0); $table->double('pvp_damage_taken')->nullable()->default(0); - $table->timestamp('first_seen_at'); + $table->timestamp('first_seen_at')->nullable(); $table->timestamp('last_seen_at')->nullable(); $table->string('last_minecraft_version')->nullable(); $table->string('last_join_address')->nullable();