diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/exchangedb/exchange_do_purse_merge.sql | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/exchangedb/exchange_do_purse_merge.sql b/src/exchangedb/exchange_do_purse_merge.sql index 308e4f49a..7f8af9ed7 100644 --- a/src/exchangedb/exchange_do_purse_merge.sql +++ b/src/exchangedb/exchange_do_purse_merge.sql @@ -44,6 +44,17 @@ DECLARE balance taler_amount; BEGIN +-- Initialize reserve, if not yet exists. +INSERT INTO reserves + (reserve_pub + ,expiration_date + ,gc_date) + VALUES + (in_reserve_pub + ,in_expiration_date + ,in_expiration_date) + ON CONFLICT DO NOTHING; + IF in_partner_url IS NULL THEN @@ -151,17 +162,6 @@ END IF; out_conflict=FALSE; --- Initialize reserve, if not yet exists. -INSERT INTO reserves - (reserve_pub - ,expiration_date - ,gc_date) - VALUES - (in_reserve_pub - ,in_expiration_date - ,in_expiration_date) - ON CONFLICT DO NOTHING; - IF (my_in_reserve_quota) THEN |