From 76189c60297819fd2aa288c863cfffecc1302dcf Mon Sep 17 00:00:00 2001 From: denghy Date: Mon, 13 May 2019 09:59:21 +0800 Subject: [PATCH] order_id --- ...2018_12_24_164434_create_real_order_cards_table.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/database/migrations/2018_12_24_164434_create_real_order_cards_table.php b/database/migrations/2018_12_24_164434_create_real_order_cards_table.php index dc21516c..0cbdd093 100644 --- a/database/migrations/2018_12_24_164434_create_real_order_cards_table.php +++ b/database/migrations/2018_12_24_164434_create_real_order_cards_table.php @@ -44,7 +44,7 @@ class CreateRealOrderCardsTable extends Migration Schema::table('real_order_cards', function (Blueprint $table) { $table->unique(['sim', 'order_id']); - $table->unique(['sim', 'refunded_at', 'deleted_at']); + $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); $table->comment("RD销售订单关联表"); }); @@ -54,22 +54,22 @@ class CreateRealOrderCardsTable extends Migration }); Schema::table('real_order_renewal_package_cards', function (Blueprint $table) { - $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); + $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); $table->comment("RD续费包订单关联表"); }); Schema::table('real_order_flows_package_cards', function (Blueprint $table) { - $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); + $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); $table->comment("RD加油包订单关联表"); }); Schema::table('real_order_optional_package_cards', function (Blueprint $table) { - $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); + $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); $table->comment("RD可选包订单关联表"); }); Schema::table('real_order_additional_package_cards', function (Blueprint $table) { - $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); + $table->unique(['sim', 'order_id', 'refunded_at', 'deleted_at']); $table->comment("RD附加包订单关联表"); }); }