From 267e5ab5cd1822310963dbfa99010c7540d10957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Fri, 16 Aug 2024 13:36:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=B2=9C=E8=8A=B12.0-=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E6=88=90=E6=9C=AC,=E5=91=A8=E6=95=B0=E6=8D=AE=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E5=8A=9F=E8=83=BD=E4=BF=AE=E6=94=B9+=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=BA=93=E5=AD=98=E5=8F=98=E6=9B=B4=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...01_152352_add_order_total_amount_to_daily_stock_record.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2024_08_01_152352_add_order_total_amount_to_daily_stock_record.php b/database/migrations/2024_08_01_152352_add_order_total_amount_to_daily_stock_record.php index 7faee02..c4084a3 100644 --- a/database/migrations/2024_08_01_152352_add_order_total_amount_to_daily_stock_record.php +++ b/database/migrations/2024_08_01_152352_add_order_total_amount_to_daily_stock_record.php @@ -18,7 +18,7 @@ class AddOrderTotalAmountToDailyStockRecord extends Migration } Schema::table('daily_stock_records', function (Blueprint $table) { $table->decimal('order_total_amount')->default(0)->comment('订单总金额'); - $table->string('batch_number')->nullable()->comment('批次号'); + $table->string('batch_number',60)->nullable()->comment('批次号'); }); } @@ -32,7 +32,7 @@ class AddOrderTotalAmountToDailyStockRecord extends Migration if (Schema::hasColumns('daily_stock_records', ['order_total_amount',"batch_number"])) { return; } - Schema::table('daily_stock_record', function (Blueprint $table) { + Schema::table('daily_stock_records', function (Blueprint $table) { // $table->dropColumn('order_total_amount'); $table->dropColumn('batch_number');