]> git.localhorst.tv Git - alttp.git/commitdiff
merge old twitch zelda category into new
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 7 May 2024 13:08:41 +0000 (15:08 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 7 May 2024 13:08:41 +0000 (15:08 +0200)
database/migrations/2024_05_07_130124_replace_old_zelda_twitch_id.php [new file with mode: 0644]

diff --git a/database/migrations/2024_05_07_130124_replace_old_zelda_twitch_id.php b/database/migrations/2024_05_07_130124_replace_old_zelda_twitch_id.php
new file mode 100644 (file)
index 0000000..eccd696
--- /dev/null
@@ -0,0 +1,26 @@
+<?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
+       {
+               DB::table('chat_logs')
+                       ->where('twitch_category', '=', '899559811')
+                       ->update(['twitch_category' => '9435']);
+       }
+
+       /**
+        * Reverse the migrations.
+        */
+       public function down(): void
+       {
+               //
+       }
+};