From e47e5c0cfba7746263775e8bbd4064b640f69020 Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Sat, 29 Jul 2023 23:01:06 +0200
Subject: migration to new amount style for exchangedb

---
 src/exchangedb/0002-close_requests.sql | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'src/exchangedb/0002-close_requests.sql')

diff --git a/src/exchangedb/0002-close_requests.sql b/src/exchangedb/0002-close_requests.sql
index 32149b1b0..a1e7fe388 100644
--- a/src/exchangedb/0002-close_requests.sql
+++ b/src/exchangedb/0002-close_requests.sql
@@ -29,10 +29,8 @@ BEGIN
       ',reserve_pub BYTEA NOT NULL CHECK (LENGTH(reserve_pub)=32)'
       ',close_timestamp INT8 NOT NULL'
       ',reserve_sig BYTEA NOT NULL CHECK (LENGTH(reserve_sig)=64)'
-      ',close_val INT8 NOT NULL'
-      ',close_frac INT4 NOT NULL'
-      ',close_fee_val INT8 NOT NULL'
-      ',close_fee_frac INT4 NOT NULL'
+      ',close taler_amount NOT NULL'
+      ',close_fee taler_amount NOT NULL'
       ',payto_uri VARCHAR NOT NULL'
       ',done BOOL NOT NULL DEFAULT(FALSE)'
       ',PRIMARY KEY (reserve_pub,close_timestamp)'
@@ -60,7 +58,7 @@ BEGIN
   );
   PERFORM comment_partitioned_column(
      'Balance of the reserve at the time of closing, to be wired to the associated bank account (minus the closing fee)'
-    ,'close_val'
+    ,'close'
     ,table_name
     ,partition_suffix
   );
-- 
cgit v1.2.3

