From 8bf885f4a5f8752bd833f7636219db6e373bc23b Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 3 Feb 2018 19:04:16 +0100 Subject: add 5v5 activatables --- .../2018_02_03_000000_Add5v5ItemsGlobalPoint.php | 32 +++++++++++ .../2018_02_03_000000_Add5v5ItemsPlayerPoint.php | 32 +++++++++++ migrations/2018_02_03_000000_fix_5v5_items.php | 67 ++++++++++++++++++++++ 3 files changed, 131 insertions(+) create mode 100644 migrations/2018_02_03_000000_Add5v5ItemsGlobalPoint.php create mode 100644 migrations/2018_02_03_000000_Add5v5ItemsPlayerPoint.php create mode 100644 migrations/2018_02_03_000000_fix_5v5_items.php diff --git a/migrations/2018_02_03_000000_Add5v5ItemsGlobalPoint.php b/migrations/2018_02_03_000000_Add5v5ItemsGlobalPoint.php new file mode 100644 index 0000000..6e20fe6 --- /dev/null +++ b/migrations/2018_02_03_000000_Add5v5ItemsGlobalPoint.php @@ -0,0 +1,32 @@ +unsignedBigInteger('item_076_use'); // Scout Cam + $table->unsignedBigInteger('item_080_use'); // Flare Loader + $table->unsignedBigInteger('item_081_use'); // Teleport Boots + }); + } + + public function down() + { + Schema::table('global_point', function (Blueprint $table) { + $table->dropColumn('item_076_use'); // Scout Cam + $table->dropColumn('item_080_use'); // Flare Loader + $table->dropColumn('item_081_use'); // Teleport Boots + }); + + } +} diff --git a/migrations/2018_02_03_000000_Add5v5ItemsPlayerPoint.php b/migrations/2018_02_03_000000_Add5v5ItemsPlayerPoint.php new file mode 100644 index 0000000..3034ca2 --- /dev/null +++ b/migrations/2018_02_03_000000_Add5v5ItemsPlayerPoint.php @@ -0,0 +1,32 @@ +unsignedBigInteger('item_076_use'); // Scout Cam + $table->unsignedBigInteger('item_080_use'); // Flare Loader + $table->unsignedBigInteger('item_081_use'); // Teleport Boots + }); + } + + public function down() + { + Schema::table('player_point', function (Blueprint $table) { + $table->dropColumn('item_076_use'); // Scout Cam + $table->dropColumn('item_080_use'); // Flare Loader + $table->dropColumn('item_081_use'); // Teleport Boots + }); + + } +} diff --git a/migrations/2018_02_03_000000_fix_5v5_items.php b/migrations/2018_02_03_000000_fix_5v5_items.php new file mode 100644 index 0000000..3ead5cf --- /dev/null +++ b/migrations/2018_02_03_000000_fix_5v5_items.php @@ -0,0 +1,67 @@ +where('name', 'Scout Cam') + ->update([ + 'is_activable' => '1' + ]); + + DB::table('item') + ->where('name', 'Buffed Cam') + ->update([ + 'name' => 'ScoutTuff', + 'is_activable' => '0' + ]); + + DB::table('item') + ->where('name', 'Multi-Cam') + ->update([ + 'name' => 'ScoutPak', + 'is_activable' => '0' + ]); + + DB::table('item') + ->where('name', 'Boosted Cam') + ->update([ + 'name' => 'SuperScout 2000', + 'is_activable' => '0' + ]); + + DB::table('item') + ->where('name', 'Flare Gun beta') + ->update([ + 'name' => 'Flare Loader', + 'is_activable' => '1' + ]); + + DB::table('item') + ->where('name', 'Teleport Boots') + ->update([ + 'is_activable' => '1' + ]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + } +} -- cgit v1.3.1