seven 1 miesiąc temu
rodzic
commit
df68e6f1d1

+ 34 - 0
database/migrations/2025_11_14_111800_alter_fee_precision_in_payment_orders.php

@@ -0,0 +1,34 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('payment_orders', function (Blueprint $table) {
+            //
+            // 修改 fee 字段为 8 位小数
+            $table->decimal('fee', 18, 8)->default(0)->comment('手续费')->change();
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('payment_orders', function (Blueprint $table) {
+            //
+        });
+    }
+};