seven 6 dni temu
rodzic
commit
33df57f0f2

+ 7 - 3
database/migrations/2025_11_14_111800_alter_fee_precision_in_payment_orders.php → database/migrations/2025_11_14_112559_change_fee_precision_in_payment_orders.php

@@ -14,9 +14,13 @@ return new class extends Migration
     public function up()
     {
         Schema::table('payment_orders', function (Blueprint $table) {
-            //
-            // 修改 fee 字段为 8 位小数
-            $table->decimal('fee', 18, 8)->default(0)->comment('手续费')->change();
+            // 删除原字段
+            $table->dropColumn('fee');
+        });
+
+        Schema::table('payment_orders', function (Blueprint $table) {
+            // 重新创建字段,精度为8位小数
+            $table->decimal('fee', 18, 8)->default(0)->comment('手续费');
         });
     }