Ken há 3 dias atrás
pai
commit
d338f7334a
1 ficheiros alterados com 37 adições e 0 exclusões
  1. 37 0
      database/migrations/2026_01_28_170203_insert_config.php

+ 37 - 0
database/migrations/2026_01_28_170203_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' => 'activity_home_url',
+                'val' => "https://bot28h5.testx2.cc/#/",
+                'remark' => '活动h5地址',
+                'group_id' => 1,
+                'created_at' => now(),
+                'updated_at' => now(),
+            ],
+        ]);
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+};