Ken 1 hari lalu
induk
melakukan
a5c087bebe
1 mengubah file dengan 37 tambahan dan 0 penghapusan
  1. 37 0
      database/migrations/2025_12_10_152005_insert_config.php

+ 37 - 0
database/migrations/2025_12_10_152005_insert_config.php

@@ -0,0 +1,37 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Support\Facades\DB;
+return new class extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        DB::table('config')->insert([
+            [
+                'field' => 'group_language',
+                'val' => "zh",
+                'remark' => '群消息语言',
+                'group_id' => 1,
+                'created_at' => now(),
+                'updated_at' => now(),
+            ]
+        ]);
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+};