aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-aml_history.sql
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-29 23:01:06 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-29 23:01:15 +0200
commite47e5c0cfba7746263775e8bbd4064b640f69020 (patch)
tree4d853f7e1d065a198b32dd14d38df179cf288e15 /src/exchangedb/0002-aml_history.sql
parentecf6b2750bb6ed9157aece72602dd042a50e36f3 (diff)
downloadexchange-e47e5c0cfba7746263775e8bbd4064b640f69020.tar.xz
migration to new amount style for exchangedb
Diffstat (limited to 'src/exchangedb/0002-aml_history.sql')
-rw-r--r--src/exchangedb/0002-aml_history.sql5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/exchangedb/0002-aml_history.sql b/src/exchangedb/0002-aml_history.sql
index 1768b97d4..18b79bae5 100644
--- a/src/exchangedb/0002-aml_history.sql
+++ b/src/exchangedb/0002-aml_history.sql
@@ -27,8 +27,7 @@ BEGIN
'CREATE TABLE IF NOT EXISTS %I'
'(aml_history_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY'
',h_payto BYTEA CHECK (LENGTH(h_payto)=32)'
- ',new_threshold_val INT8 NOT NULL DEFAULT(0)'
- ',new_threshold_frac INT4 NOT NULL DEFAULT(0)'
+ ',new_threshold taler_amount NOT NULL DEFAULT(0,0)'
',new_status INT4 NOT NULL DEFAULT(0)'
',decision_time INT8 NOT NULL DEFAULT(0)'
',justification VARCHAR NOT NULL'
@@ -54,7 +53,7 @@ BEGIN
);
PERFORM comment_partitioned_column(
'new monthly inbound transaction limit below which we are OK'
- ,'new_threshold_val'
+ ,'new_threshold'
,table_name
,partition_suffix
);