fix: refs #7800 tpvMerchantEnable PRIMARY KEY #2861

Merged
guillermo merged 2 commits from 7800-tpvMerchantEnable into dev 2024-08-14 10:02:45 +00:00
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ALTER TABLE hedera.tpvMerchantEnable
DROP FOREIGN KEY tpvMerchantEnable_ibfk_1,
DROP PRIMARY KEY,
ADD CONSTRAINT tpvMerchantEnable_pk PRIMARY KEY (merchantFk),
ADD CONSTRAINT tpvMerchantEnable_tpvMerchant_FK
FOREIGN KEY (merchantFk)
REFERENCES hedera.tpvMerchant(id)
ON DELETE RESTRICT
ON UPDATE CASCADE;