add currency and interest rate to savings

This commit is contained in:
John Woodlock
2012-08-01 14:40:36 +10:00
parent 37a45649b1
commit b4e9b5a566
2 changed files with 7 additions and 0 deletions
@@ -287,6 +287,9 @@ CREATE TABLE `portfolio_product_savings` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`description` varchar(500) DEFAULT NULL,
`currency_code` varchar(3) NOT NULL,
`currency_digits` smallint(5) NOT NULL,
`interest_rate` decimal(19,6) NOT NULL,
`createdby_id` bigint(20) DEFAULT NULL,
`created_date` datetime DEFAULT NULL,
`lastmodified_date` datetime DEFAULT NULL,
@@ -0,0 +1,4 @@
ALTER TABLE `portfolio_product_savings`
ADD COLUMN `currency_code` VARCHAR(3) NULL AFTER `description` ,
ADD COLUMN `currency_digits` SMALLINT(5) NULL AFTER `currency_code` ,
ADD COLUMN `interest_rate` DECIMAL(19,6) NULL AFTER `currency_digits` ;