Skip to content

Commit

Permalink
fix mariadb timestamp column bulshit
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 5, 2024
1 parent ccd4b0d commit 407e07c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 407e07c

Please sign in to comment.