diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-01-11 16:43:22 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-11 16:43:22 +0100 |
commit | af06ddc8e833d6f4bbfd49585a750227b05c056d (patch) | |
tree | 2934a0e9b5263e1cb7be0f960a6beec0ccd43964 /src/exchangedb/0002-refresh_commitments.sql | |
parent | ce43a23ddd61fa1f1a91f8ba597bc88019d3b66c (diff) |
-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.sql | 2 |
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)' |