diff --git a/database/migrations/2022_08_05_093629_create_business_orders_table.php b/database/migrations/2022_08_05_093629_create_business_orders_table.php index 360fe04..60590fa 100644 --- a/database/migrations/2022_08_05_093629_create_business_orders_table.php +++ b/database/migrations/2022_08_05_093629_create_business_orders_table.php @@ -61,7 +61,8 @@ class CreateBusinessOrdersTable extends Migration // 索引 $table->unique(['shop_id', 'order_sn']); $table->index(['shop_id', 'participate_no']); - $table->index(['shop_id', 'confirm_at', 'after_sales_status', 'cancel_status', 'is_supplier']); + $table->index(['shop_id', 'confirm_at', 'after_sales_status', 'cancel_status', 'is_supplier'] + ,"shop_id_confirm_at_composite_index"); }); }