aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-08-31 00:12:44 +0200
committerChristian Grothoff <grothoff@gnunet.org>2023-08-31 00:12:44 +0200
commit50f1df8a614bb42eb3295acdd5b7e2a3d6935310 (patch)
tree834a47f3edd94bbdc158002aa26505162dcb3d01 /src
parent3e9a1fc66e4c8317a7d9012d36c5685682ec3c10 (diff)
reserve space for wallet_data_hash in schema
Diffstat (limited to 'src')
-rw-r--r--src/exchangedb/0002-deposits.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exchangedb/0002-deposits.sql b/src/exchangedb/0002-deposits.sql
index e33bfcf99..f15b869cc 100644
--- a/src/exchangedb/0002-deposits.sql
+++ b/src/exchangedb/0002-deposits.sql
@@ -36,6 +36,8 @@ BEGIN
',wire_deadline INT8 NOT NULL'
',merchant_pub BYTEA NOT NULL CHECK (LENGTH(merchant_pub)=32)'
',h_contract_terms BYTEA NOT NULL CHECK (LENGTH(h_contract_terms)=64)'
+ ',wallet_data_hash BYTEA CHECK (LENGTH(wallet_data_hash)=64) DEFAULT NULL'
+ ',subcontract_id INT4 NOT NULL DEFAULT 0'
',coin_sig BYTEA NOT NULL CHECK (LENGTH(coin_sig)=64)'
',wire_salt BYTEA NOT NULL CHECK (LENGTH(wire_salt)=16)'
',wire_target_h_payto BYTEA CHECK (LENGTH(wire_target_h_payto)=32)'
@@ -71,6 +73,12 @@ BEGIN
,partition_suffix
);
PERFORM comment_partitioned_column(
+ 'hash over data provided by the wallet upon payment to select a more specific contract'
+ ,'wallet_data_hash'
+ ,table_name
+ ,partition_suffix
+ );
+ PERFORM comment_partitioned_column(
'Salt used when hashing the payto://-URI to get the h_wire'
,'wire_salt'
,table_name