upsert
This commit is contained in:
parent
f5bd7888d0
commit
924170da16
@ -126,7 +126,7 @@ class LogSync extends Command
|
||||
}
|
||||
} else {
|
||||
unset($relationData['counts']);
|
||||
$relation = $class->upsert($relationData, ['sim', 'order_id']);
|
||||
$relation = $class->upsert($relationData, ['sim', 'order_id', 'deleted_at']);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
DB::rollback();
|
||||
|
@ -26,8 +26,7 @@ class CreateVirtualOrderCardsTable extends Migration
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->unique(['sim', 'order_id']);
|
||||
$table->unique(['sim', 'deleted_at']);
|
||||
$table->unique(['sim', 'order_id', 'deleted_at']);
|
||||
|
||||
$table->comment("VD订单企业套餐卡关联表");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user