summaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-refresh_commitments.sql
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-01-11 16:43:22 +0100
committerChristian Grothoff <christian@grothoff.org>2023-01-11 16:43:22 +0100
commitaf06ddc8e833d6f4bbfd49585a750227b05c056d (patch)
tree2934a0e9b5263e1cb7be0f960a6beec0ccd43964 /src/exchangedb/0002-refresh_commitments.sql
parentce43a23ddd61fa1f1a91f8ba597bc88019d3b66c (diff)
downloadexchange-af06ddc8e833d6f4bbfd49585a750227b05c056d.tar.gz
exchange-af06ddc8e833d6f4bbfd49585a750227b05c056d.tar.bz2
exchange-af06ddc8e833d6f4bbfd49585a750227b05c056d.zip
-add a few missing indices/foreign key constraints
Diffstat (limited to 'src/exchangedb/0002-refresh_commitments.sql')
-rw-r--r--src/exchangedb/0002-refresh_commitments.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/0002-refresh_commitments.sql b/src/exchangedb/0002-refresh_commitments.sql
index c63995c74..328dad5ce 100644
--- a/src/exchangedb/0002-refresh_commitments.sql
+++ b/src/exchangedb/0002-refresh_commitments.sql
@@ -25,7 +25,7 @@ DECLARE
BEGIN
PERFORM create_partitioned_table(
'CREATE TABLE %I'
- '(melt_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY' -- UNIQUE'
+ '(melt_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY'
',rc BYTEA PRIMARY KEY CHECK (LENGTH(rc)=64)'
',old_coin_pub BYTEA NOT NULL'
',old_coin_sig BYTEA NOT NULL CHECK(LENGTH(old_coin_sig)=64)'