Ken 1 일 전
부모
커밋
2411b28208
3개의 변경된 파일32개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      app/Models/Config.php
  2. 1 1
      database/migrations/2025_12_05_173640_update_config.php
  3. 30 0
      database/migrations/2025_12_10_133100_update_config.php

+ 1 - 0
app/Models/Config.php

@@ -11,6 +11,7 @@ class Config extends BaseModel
      * 1 系统基础配置
      * 2 频道消息配置
      * 3 用户自定义配置
+     * 4 自定义PC28
      *
      *
      */

+ 1 - 1
database/migrations/2025_12_05_173640_update_config.php

@@ -3,7 +3,7 @@
 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.

+ 30 - 0
database/migrations/2025_12_10_133100_update_config.php

@@ -0,0 +1,30 @@
+<?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')->where('field', 'pc28_switch')->update(['group_id' => 4]);
+
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        //
+    }
+};