This commit is contained in:
邓皓元 2018-12-25 18:25:35 +08:00
parent f5bd7888d0
commit 924170da16
2 changed files with 2 additions and 3 deletions

View File

@ -126,7 +126,7 @@ class LogSync extends Command
} }
} else { } else {
unset($relationData['counts']); unset($relationData['counts']);
$relation = $class->upsert($relationData, ['sim', 'order_id']); $relation = $class->upsert($relationData, ['sim', 'order_id', 'deleted_at']);
} }
} catch (\Exception $e) { } catch (\Exception $e) {
DB::rollback(); DB::rollback();

View File

@ -26,8 +26,7 @@ class CreateVirtualOrderCardsTable extends Migration
$table->timestamps(); $table->timestamps();
$table->softDeletes(); $table->softDeletes();
$table->unique(['sim', 'order_id']); $table->unique(['sim', 'order_id', 'deleted_at']);
$table->unique(['sim', 'deleted_at']);
$table->comment("VD订单企业套餐卡关联表"); $table->comment("VD订单企业套餐卡关联表");
}); });