Skip to content

Commit

Permalink
migration fixes for laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 9, 2024
1 parent 6c6d93b commit 090b9af
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists('minecraft_player_stats');
Schema::dropIfExists('json_minecraft_player_stats');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists('minecraft_player_advancements');
Schema::dropIfExists('json_minecraft_player_advancements');
}
}
5 changes: 5 additions & 0 deletions database/migrations/2021_01_10_102329_create_media_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ public function up()
$table->nullableTimestamps();
});
}

public function down()
{
Schema::dropIfExists('media');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ public function up()
$table->timestamps();
});
}

public function down()
{
Schema::dropIfExists('settings');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@
public function up()
{
Schema::table('players', function (Blueprint $table) {
$table->bigInteger('total_used')->change();
$table->bigInteger('total_mined')->change();
$table->bigInteger('total_picked_up')->change();
$table->bigInteger('total_dropped')->change();
$table->bigInteger('total_broken')->change();
$table->bigInteger('total_crafted')->change();
$table->bigInteger('total_used')->default(0)->change();
$table->bigInteger('total_mined')->default(0)->change();
$table->bigInteger('total_picked_up')->default(0)->change();
$table->bigInteger('total_dropped')->default(0)->change();
$table->bigInteger('total_broken')->default(0)->change();
$table->bigInteger('total_crafted')->default(0)->change();

$table->bigInteger('total_mob_kills')->change();
$table->bigInteger('total_player_kills')->change();
$table->bigInteger('total_deaths')->change();
$table->bigInteger('total_mob_kills')->default(0)->change();
$table->bigInteger('total_player_kills')->default(0)->change();
$table->bigInteger('total_deaths')->default(0)->change();

$table->bigInteger('total_damage_dealt')->change();
$table->bigInteger('total_damage_dealt_absorbed')->change();
$table->bigInteger('total_damage_dealt_resisted')->change();
$table->bigInteger('total_damage_absorbed')->change();
$table->bigInteger('total_damage_blocked_by_shield')->change();
$table->bigInteger('total_damage_resisted')->change();
$table->bigInteger('total_damage_taken')->change();
$table->bigInteger('total_damage_dealt')->default(0)->change();
$table->bigInteger('total_damage_dealt_absorbed')->default(0)->change();
$table->bigInteger('total_damage_dealt_resisted')->default(0)->change();
$table->bigInteger('total_damage_absorbed')->default(0)->change();
$table->bigInteger('total_damage_blocked_by_shield')->default(0)->change();
$table->bigInteger('total_damage_resisted')->default(0)->change();
$table->bigInteger('total_damage_taken')->default(0)->change();

$table->bigInteger('total_walk_one_cm')->change();
$table->bigInteger('total_fish_caught')->change();
$table->bigInteger('total_enchant_item')->change();
$table->bigInteger('total_play_one_minute')->change();
$table->bigInteger('total_sleep_in_bed')->change();
$table->bigInteger('total_jumps')->change();
$table->bigInteger('total_leave_game')->change();
$table->bigInteger('total_walk_one_cm')->default(0)->change();
$table->bigInteger('total_fish_caught')->default(0)->change();
$table->bigInteger('total_enchant_item')->default(0)->change();
$table->bigInteger('total_play_one_minute')->default(0)->change();
$table->bigInteger('total_sleep_in_bed')->default(0)->change();
$table->bigInteger('total_jumps')->default(0)->change();
$table->bigInteger('total_leave_game')->default(0)->change();
});
}

Expand All @@ -51,32 +51,32 @@ public function up()
public function down()
{
Schema::table('players', function (Blueprint $table) {
$table->unsignedBigInteger('total_used')->change();
$table->unsignedBigInteger('total_mined')->change();
$table->unsignedBigInteger('total_picked_up')->change();
$table->unsignedBigInteger('total_dropped')->change();
$table->unsignedBigInteger('total_broken')->change();
$table->unsignedBigInteger('total_crafted')->change();
$table->unsignedBigInteger('total_used')->default(0)->change();
$table->unsignedBigInteger('total_mined')->default(0)->change();
$table->unsignedBigInteger('total_picked_up')->default(0)->change();
$table->unsignedBigInteger('total_dropped')->default(0)->change();
$table->unsignedBigInteger('total_broken')->default(0)->change();
$table->unsignedBigInteger('total_crafted')->default(0)->change();

$table->unsignedBigInteger('total_mob_kills')->change();
$table->unsignedBigInteger('total_player_kills')->change();
$table->unsignedBigInteger('total_deaths')->change();
$table->unsignedBigInteger('total_mob_kills')->default(0)->change();
$table->unsignedBigInteger('total_player_kills')->default(0)->change();
$table->unsignedBigInteger('total_deaths')->default(0)->change();

$table->unsignedBigInteger('total_damage_dealt')->change();
$table->unsignedBigInteger('total_damage_dealt_absorbed')->change();
$table->unsignedBigInteger('total_damage_dealt_resisted')->change();
$table->unsignedBigInteger('total_damage_absorbed')->change();
$table->unsignedBigInteger('total_damage_blocked_by_shield')->change();
$table->unsignedBigInteger('total_damage_resisted')->change();
$table->unsignedBigInteger('total_damage_taken')->change();
$table->unsignedBigInteger('total_damage_dealt')->default(0)->change();
$table->unsignedBigInteger('total_damage_dealt_absorbed')->default(0)->change();
$table->unsignedBigInteger('total_damage_dealt_resisted')->default(0)->change();
$table->unsignedBigInteger('total_damage_absorbed')->default(0)->change();
$table->unsignedBigInteger('total_damage_blocked_by_shield')->default(0)->change();
$table->unsignedBigInteger('total_damage_resisted')->default(0)->change();
$table->unsignedBigInteger('total_damage_taken')->default(0)->change();

$table->unsignedBigInteger('total_walk_one_cm')->change();
$table->unsignedBigInteger('total_fish_caught')->change();
$table->unsignedBigInteger('total_enchant_item')->change();
$table->unsignedBigInteger('total_play_one_minute')->change();
$table->unsignedBigInteger('total_sleep_in_bed')->change();
$table->unsignedBigInteger('total_jumps')->change();
$table->unsignedBigInteger('total_leave_game')->change();
$table->unsignedBigInteger('total_walk_one_cm')->default(0)->change();
$table->unsignedBigInteger('total_fish_caught')->default(0)->change();
$table->unsignedBigInteger('total_enchant_item')->default(0)->change();
$table->unsignedBigInteger('total_play_one_minute')->default(0)->change();
$table->unsignedBigInteger('total_sleep_in_bed')->default(0)->change();
$table->unsignedBigInteger('total_jumps')->default(0)->change();
$table->unsignedBigInteger('total_leave_game')->default(0)->change();
});
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,32 @@
public function up()
{
Schema::table('json_minecraft_player_stats', function (Blueprint $table) {
$table->bigInteger('total_used')->change();
$table->bigInteger('total_mined')->change();
$table->bigInteger('total_picked_up')->change();
$table->bigInteger('total_dropped')->change();
$table->bigInteger('total_broken')->change();
$table->bigInteger('total_crafted')->change();
$table->bigInteger('total_used')->default(0)->change();
$table->bigInteger('total_mined')->default(0)->change();
$table->bigInteger('total_picked_up')->default(0)->change();
$table->bigInteger('total_dropped')->default(0)->change();
$table->bigInteger('total_broken')->default(0)->change();
$table->bigInteger('total_crafted')->default(0)->change();

$table->bigInteger('total_mob_kills')->change();
$table->bigInteger('total_player_kills')->change();
$table->bigInteger('total_deaths')->change();
$table->bigInteger('total_mob_kills')->default(0)->change();
$table->bigInteger('total_player_kills')->default(0)->change();
$table->bigInteger('total_deaths')->default(0)->change();

$table->bigInteger('total_damage_dealt')->change();
$table->bigInteger('total_damage_dealt_absorbed')->change();
$table->bigInteger('total_damage_dealt_resisted')->change();
$table->bigInteger('total_damage_absorbed')->change();
$table->bigInteger('total_damage_blocked_by_shield')->change();
$table->bigInteger('total_damage_resisted')->change();
$table->bigInteger('total_damage_taken')->change();
$table->bigInteger('total_damage_dealt')->default(0)->change();
$table->bigInteger('total_damage_dealt_absorbed')->default(0)->change();
$table->bigInteger('total_damage_dealt_resisted')->default(0)->change();
$table->bigInteger('total_damage_absorbed')->default(0)->change();
$table->bigInteger('total_damage_blocked_by_shield')->default(0)->change();
$table->bigInteger('total_damage_resisted')->default(0)->change();
$table->bigInteger('total_damage_taken')->default(0)->change();

$table->bigInteger('total_walk_one_cm')->change();
$table->bigInteger('total_fish_caught')->change();
$table->bigInteger('total_enchant_item')->change();
$table->bigInteger('total_play_one_minute')->change();
$table->bigInteger('total_sleep_in_bed')->change();
$table->bigInteger('total_jumps')->change();
$table->bigInteger('total_leave_game')->change();
$table->bigInteger('total_walk_one_cm')->default(0)->change();
$table->bigInteger('total_fish_caught')->default(0)->change();
$table->bigInteger('total_enchant_item')->default(0)->change();
$table->bigInteger('total_play_one_minute')->default(0)->change();
$table->bigInteger('total_sleep_in_bed')->default(0)->change();
$table->bigInteger('total_jumps')->default(0)->change();
$table->bigInteger('total_leave_game')->default(0)->change();
});
}

Expand All @@ -51,32 +51,32 @@ public function up()
public function down()
{
Schema::table('json_minecraft_player_stats', function (Blueprint $table) {
$table->unsignedBigInteger('total_used')->change();
$table->unsignedBigInteger('total_mined')->change();
$table->unsignedBigInteger('total_picked_up')->change();
$table->unsignedBigInteger('total_dropped')->change();
$table->unsignedBigInteger('total_broken')->change();
$table->unsignedBigInteger('total_crafted')->change();
$table->unsignedBigInteger('total_used')->default(0)->change();
$table->unsignedBigInteger('total_mined')->default(0)->change();
$table->unsignedBigInteger('total_picked_up')->default(0)->change();
$table->unsignedBigInteger('total_dropped')->default(0)->change();
$table->unsignedBigInteger('total_broken')->default(0)->change();
$table->unsignedBigInteger('total_crafted')->default(0)->change();

$table->unsignedBigInteger('total_mob_kills')->change();
$table->unsignedBigInteger('total_player_kills')->change();
$table->unsignedBigInteger('total_deaths')->change();
$table->unsignedBigInteger('total_mob_kills')->default(0)->change();
$table->unsignedBigInteger('total_player_kills')->default(0)->change();
$table->unsignedBigInteger('total_deaths')->default(0)->change();

$table->unsignedBigInteger('total_damage_dealt')->change();
$table->unsignedBigInteger('total_damage_dealt_absorbed')->change();
$table->unsignedBigInteger('total_damage_dealt_resisted')->change();
$table->unsignedBigInteger('total_damage_absorbed')->change();
$table->unsignedBigInteger('total_damage_blocked_by_shield')->change();
$table->unsignedBigInteger('total_damage_resisted')->change();
$table->unsignedBigInteger('total_damage_taken')->change();
$table->unsignedBigInteger('total_damage_dealt')->default(0)->change();
$table->unsignedBigInteger('total_damage_dealt_absorbed')->default(0)->change();
$table->unsignedBigInteger('total_damage_dealt_resisted')->default(0)->change();
$table->unsignedBigInteger('total_damage_absorbed')->default(0)->change();
$table->unsignedBigInteger('total_damage_blocked_by_shield')->default(0)->change();
$table->unsignedBigInteger('total_damage_resisted')->default(0)->change();
$table->unsignedBigInteger('total_damage_taken')->default(0)->change();

$table->unsignedBigInteger('total_walk_one_cm')->change();
$table->unsignedBigInteger('total_fish_caught')->change();
$table->unsignedBigInteger('total_enchant_item')->change();
$table->unsignedBigInteger('total_play_one_minute')->change();
$table->unsignedBigInteger('total_sleep_in_bed')->change();
$table->unsignedBigInteger('total_jumps')->change();
$table->unsignedBigInteger('total_leave_game')->change();
$table->unsignedBigInteger('total_walk_one_cm')->default(0)->change();
$table->unsignedBigInteger('total_fish_caught')->default(0)->change();
$table->unsignedBigInteger('total_enchant_item')->default(0)->change();
$table->unsignedBigInteger('total_play_one_minute')->default(0)->change();
$table->unsignedBigInteger('total_sleep_in_bed')->default(0)->change();
$table->unsignedBigInteger('total_jumps')->default(0)->change();
$table->unsignedBigInteger('total_leave_game')->default(0)->change();
});
}
};

0 comments on commit 090b9af

Please sign in to comment.