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-legitimization_requirements.sql | |
parent | ce43a23ddd61fa1f1a91f8ba597bc88019d3b66c (diff) | |
download | exchange-af06ddc8e833d6f4bbfd49585a750227b05c056d.tar.xz |
-add a few missing indices/foreign key constraints
Diffstat (limited to 'src/exchangedb/0002-legitimization_requirements.sql')
-rw-r--r-- | src/exchangedb/0002-legitimization_requirements.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/0002-legitimization_requirements.sql b/src/exchangedb/0002-legitimization_requirements.sql index 7aaf7b799..4879b7a27 100644 --- a/src/exchangedb/0002-legitimization_requirements.sql +++ b/src/exchangedb/0002-legitimization_requirements.sql @@ -23,7 +23,7 @@ AS $$ BEGIN PERFORM create_partitioned_table( 'CREATE TABLE %I' - '(legitimization_requirement_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY' -- UNIQUE' + '(legitimization_requirement_serial_id BIGINT GENERATED BY DEFAULT AS IDENTITY' ',h_payto BYTEA NOT NULL CHECK (LENGTH(h_payto)=32)' ',required_checks VARCHAR NOT NULL' ',UNIQUE (h_payto, required_checks)' |