diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-11-27 21:21:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-11-27 21:21:04 +0100 |
commit | cf2e37cd876651e799893e8fe5babb51a9e12dd7 (patch) | |
tree | 437047cc646fb1a3a86f4226fd5460bbe2b0c530 /src/exchangedb/0002-kyc_alerts.sql | |
parent | f2ba02aab2b9bbd976107ecc4ac7e7d657a9d73a (diff) | |
download | exchange-cf2e37cd876651e799893e8fe5babb51a9e12dd7.tar.xz |
more work on SQL refactoring
Diffstat (limited to 'src/exchangedb/0002-kyc_alerts.sql')
-rw-r--r-- | src/exchangedb/0002-kyc_alerts.sql | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/exchangedb/0002-kyc_alerts.sql b/src/exchangedb/0002-kyc_alerts.sql index 74872a9c9..8e54846cf 100644 --- a/src/exchangedb/0002-kyc_alerts.sql +++ b/src/exchangedb/0002-kyc_alerts.sql @@ -14,7 +14,7 @@ -- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> -- -CREATE TABLE IF NOT EXISTS kyc_alerts +CREATE TABLE kyc_alerts (h_payto BYTEA PRIMARY KEY CHECK (LENGTH(h_payto)=32) ,trigger_type INT4 NOT NULL ,UNIQUE(trigger_type,h_payto) @@ -25,17 +25,3 @@ COMMENT ON COLUMN kyc_alerts.h_payto IS 'hash of the payto://-URI for which the KYC status changed'; COMMENT ON COLUMN kyc_alerts.trigger_type IS 'identifies the receiver of the alert, as the same h_payto may require multiple components to be notified'; - - -INSERT INTO exchange_tables - (name - ,version - ,action - ,partitioned - ,by_range) - VALUES - ('kyc_alerts' - ,'exchange-0002' - ,'create' - ,FALSE - ,FALSE); |