aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/exchange-0002.sql.in
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-07-28 12:36:28 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-07-28 12:36:28 +0200
commit85020a9204f3fdcc1ab29fa43e18d53c31fb595a (patch)
treee6261b38cd737b3fb7a8563f5c998727369df657 /src/exchangedb/exchange-0002.sql.in
parent963e84aad2eb6fdd0de17d3176e080b5ae1b415b (diff)
parentd0835367865b5a0ae941abcec2c1c2d067f10b25 (diff)
Merge branch 'master' of ssh://git.taler.net/exchange
Diffstat (limited to 'src/exchangedb/exchange-0002.sql.in')
-rw-r--r--src/exchangedb/exchange-0002.sql.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/exchangedb/exchange-0002.sql.in b/src/exchangedb/exchange-0002.sql.in
index 1d28f63a..35113fb5 100644
--- a/src/exchangedb/exchange-0002.sql.in
+++ b/src/exchangedb/exchange-0002.sql.in
@@ -19,6 +19,21 @@ BEGIN;
SELECT _v.register_patch('exchange-0002', NULL, NULL);
SET search_path TO exchange;
+CREATE TYPE taler_amount
+ AS
+ (val INT8
+ ,frac INT4);
+COMMENT ON TYPE taler_amount
+ IS 'Stores an amount, fraction is in units of 1/100000000 of the base value';
+
+CREATE TYPE exchange_do_array_reserve_insert_return_type
+ AS
+ (transaction_duplicate BOOLEAN
+ ,ruuid INT8
+ );
+COMMENT ON TYPE exchange_do_array_reserve_insert_return_type
+ IS 'Return type for exchange_do_array_reserves_insert() stored procedure';
+
#include "0002-denominations.sql"
#include "0002-denomination_revocations.sql"
#include "0002-wire_targets.sql"
@@ -71,5 +86,14 @@ SET search_path TO exchange;
#include "0002-revolving_work_shards.sql"
#include "0002-partners.sql"
#include "0002-partner_accounts.sql"
+#include "0002-purse_actions.sql"
+#include "0002-purse_deletion.sql"
+#include "0002-kyc_attributes.sql"
+#include "0002-aml_status.sql"
+#include "0002-aml_staff.sql"
+#include "0002-aml_history.sql"
+#include "0002-age_withdraw.sql"
+
+
COMMIT;