diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-07-28 12:21:28 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-07-28 12:21:28 +0200 |
commit | c93ce9ea2eb16a91422b8101fecd8c491c7e93b7 (patch) | |
tree | 073a5d3dc35d410faa3bc098291eab108e63975a /src/exchangedb/exchange-0002.sql.in | |
parent | 571d43cef3732ed6f491d91a9e767a80008edeb1 (diff) | |
download | exchange-c93ce9ea2eb16a91422b8101fecd8c491c7e93b7.tar.xz |
-fix type defs
Diffstat (limited to 'src/exchangedb/exchange-0002.sql.in')
-rw-r--r-- | src/exchangedb/exchange-0002.sql.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/exchangedb/exchange-0002.sql.in b/src/exchangedb/exchange-0002.sql.in index 1d28f63a4..f0bf339bc 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" |