added foreign key contraint for group and client in loan table

This commit is contained in:
ashok-conflux
2013-04-22 12:41:45 +05:30
parent fe5c68d1e4
commit 1068fe5870
@@ -0,0 +1,7 @@
ALTER TABLE m_loan
ADD CONSTRAINT `fk_m_group_client_001`
FOREIGN KEY (`group_id` , `client_id` )
REFERENCES m_group_client (`group_id` , `client_id` )
ON DELETE NO ACTION
ON UPDATE NO ACTION
, ADD INDEX `fk_m_group_client_001_idx` (`group_id` ASC, `client_id` ASC) ;