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');