Ken hace 1 semana
padre
commit
8dae8fc61c
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      database/migrations/2025_11_10_133313_create_cao_history.php

+ 4 - 3
database/migrations/2025_11_10_133313_create_cao_history.php

@@ -4,8 +4,7 @@ use Illuminate\Database\Migrations\Migration;
 use Illuminate\Database\Schema\Blueprint;
 use Illuminate\Support\Facades\Schema;
 
-return new class extends Migration
-{
+return new class extends Migration {
     /**
      * Run the migrations.
      *
@@ -36,7 +35,9 @@ return new class extends Migration
             $table->integer('leopard')->default(0)->comment('豹子');
 
 
-            $table->integer('num_0')->default(0)->comment("00号");
+            for ($i = 0; $i <= 27; $i++) {
+                $table->integer("num_{$i}")->default(0)->comment("{$i}号");
+            }
 
 
             $table->timestamps();