fix: refs #7800 tpvMerchantEnable PRIMARY KEY
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-08-13 12:49:56 +02:00
parent 360e20545a
commit dd5845abae
1 changed files with 6 additions and 0 deletions

View File

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