From 32edad5d4bab11033a20f9cf58cf64f780fd168c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Thu, 8 Aug 2024 16:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=B2=9C=E8=8A=B12.0-=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024_08_02_175020_create_business_after_sale_orders.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2024_08_02_175020_create_business_after_sale_orders.php b/database/migrations/2024_08_02_175020_create_business_after_sale_orders.php index 78a1072..cd38f43 100644 --- a/database/migrations/2024_08_02_175020_create_business_after_sale_orders.php +++ b/database/migrations/2024_08_02_175020_create_business_after_sale_orders.php @@ -31,10 +31,10 @@ class CreateBusinessAfterSaleOrders extends Migration $table->dateTime('after_sale_created_at')->nullable()->comment('售后单三方创建时间'); $table->dateTime('after_sale_updated_at')->nullable()->comment('售后单三方更新时间'); - $table->unique(["shop_id",'order_sn']); + $table->unique(["shop_id",'order_sn'],"unique_shop_id_order_sn"); $table->index('order_sn'); $table->index('after_sales_biz_sn'); - $table->index(['after_sales_biz_sn',"apply_type"]); + $table->index(['after_sales_biz_sn',"apply_type"],"index_biz_sn_apply_type"); $table->index('after_sale_created_at'); $table->timestamps(); });