|
@@ -14,9 +14,13 @@ return new class extends Migration
|
|
|
public function up()
|
|
public function up()
|
|
|
{
|
|
{
|
|
|
Schema::table('payment_orders', function (Blueprint $table) {
|
|
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('手续费');
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|