remove organisation association from client to allow use of JPA and respositories to work for clients. support associating fund with loan account.

This commit is contained in:
Keith Woodlock
2012-07-11 11:46:37 +01:00
parent 7c125b6012
commit b653fd5240
14 changed files with 118 additions and 43 deletions
@@ -0,0 +1,11 @@
-- example of dropping fund column/index/foreign key
-- alter table `mifosngprovider`.`portfolio_loan`
-- DROP FOREIGN KEY `FK7C885877240145`,
-- DROP INDEX `FK7C885877240145`,
-- drop column `fund_id`;
-- associate fund table with loans making fund optional at database level
alter table `mifosngprovider`.`portfolio_loan`
add column `fund_id` bigint(20) DEFAULT NULL,
add KEY `FK7C885877240145` (`fund_id`),
add CONSTRAINT `FK7C885877240145` FOREIGN KEY (`fund_id`) REFERENCES `org_fund` (`id`);