diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-10-04 11:32:04 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-10-04 11:32:04 +0200 |
commit | 94a3dd52da3ae180af37c6fd0e8c24b3562da388 (patch) | |
tree | acced055660bfd65ca3e955ea26d412457ba4507 /src/Model/Event/TrainUnits.php | |
parent | fa00b957378a393f8edbfc98ef111d35d18ecb09 (diff) |
initial commit 2
Diffstat (limited to 'src/Model/Event/TrainUnits.php')
-rw-r--r-- | src/Model/Event/TrainUnits.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Model/Event/TrainUnits.php b/src/Model/Event/TrainUnits.php index 0c7e0de..0090d0f 100644 --- a/src/Model/Event/TrainUnits.php +++ b/src/Model/Event/TrainUnits.php @@ -19,7 +19,7 @@ class TrainUnits extends Event insert into village_units (amount, type, is_traveling, home_village_id, residence_village_id) values (:amount, :type, false, :id, :id) on conflict (type, home_village_id, residence_village_id) - do update set amount = excluded.amount+:amount + do update set amount = village_units.amount+:amount SQL, ['amount' => $payload['amount'], 'type' => $payload['type'], 'id' => $this->villageId] ); |