From d2b522bf6f11356d4343904bf1f99ed7872a10bd Mon Sep 17 00:00:00 2001 From: John Woodlock Date: Wed, 8 Aug 2012 17:20:16 +1000 Subject: [PATCH] new ddl for deposit product (slight update) --- .../0001a-mifos-platform-base-ddl-schema.sql | 18 +++++++++--------- .../patch-01-new-deposit-product-table.sql | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/mifosng-db/0001a-mifos-platform-base-ddl-schema.sql b/mifosng-db/0001a-mifos-platform-base-ddl-schema.sql index 60f397fcd..806dad5d9 100644 --- a/mifosng-db/0001a-mifos-platform-base-ddl-schema.sql +++ b/mifosng-db/0001a-mifos-platform-base-ddl-schema.sql @@ -309,17 +309,17 @@ CREATE TABLE `portfolio_product_deposit` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `description` varchar(500) DEFAULT NULL, - `currency_code` varchar(3) DEFAULT NULL, - `currency_digits` smallint(5) DEFAULT NULL, + `currency_code` varchar(3) NOT NULL, + `currency_digits` smallint(5) NOT NULL, `minimum_balance` decimal(19,6) DEFAULT NULL, `maximum_balance` decimal(19,6) DEFAULT NULL, - `tenure_months` int(11) DEFAULT NULL, - `maturity_default_interest_rate` decimal(19,6) DEFAULT NULL, - `maturity_min_interest_rate` decimal(19,6) DEFAULT NULL, - `maturity_max_interest_rate` decimal(19,6) DEFAULT NULL, - `can_renew` tinyint(1) DEFAULT NULL, - `can_pre_close` tinyint(1) DEFAULT NULL, - `pre_closure_interest_rate` decimal(19,6) DEFAULT NULL, + `tenure_months` int(11) NOT NULL, + `maturity_default_interest_rate` decimal(19,6) NOT NULL, + `maturity_min_interest_rate` decimal(19,6) NOT NULL, + `maturity_max_interest_rate` decimal(19,6) NOT NULL, + `can_renew` tinyint(1) NOT NULL DEFAULT '0', + `can_pre_close` tinyint(1) NOT NULL DEFAULT '0', + `pre_closure_interest_rate` decimal(19,6) NOT NULL, `is_deleted` tinyint(1) NOT NULL DEFAULT '0', `createdby_id` bigint(20) DEFAULT NULL, `created_date` datetime DEFAULT NULL, diff --git a/mifosng-db/patches/patch-01-new-deposit-product-table.sql b/mifosng-db/patches/patch-01-new-deposit-product-table.sql index 7c7b577ca..acea23be7 100644 --- a/mifosng-db/patches/patch-01-new-deposit-product-table.sql +++ b/mifosng-db/patches/patch-01-new-deposit-product-table.sql @@ -13,17 +13,17 @@ CREATE TABLE `portfolio_product_deposit` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `description` varchar(500) DEFAULT NULL, - `currency_code` varchar(3) DEFAULT NULL, - `currency_digits` smallint(5) DEFAULT NULL, + `currency_code` varchar(3) NOT NULL, + `currency_digits` smallint(5) NOT NULL, `minimum_balance` decimal(19,6) DEFAULT NULL, `maximum_balance` decimal(19,6) DEFAULT NULL, - `tenure_months` int(11) DEFAULT NULL, - `maturity_default_interest_rate` decimal(19,6) DEFAULT NULL, - `maturity_min_interest_rate` decimal(19,6) DEFAULT NULL, - `maturity_max_interest_rate` decimal(19,6) DEFAULT NULL, - `can_renew` tinyint(1) DEFAULT NULL, - `can_pre_close` tinyint(1) DEFAULT NULL, - `pre_closure_interest_rate` decimal(19,6) DEFAULT NULL, + `tenure_months` int(11) NOT NULL, + `maturity_default_interest_rate` decimal(19,6) NOT NULL, + `maturity_min_interest_rate` decimal(19,6) NOT NULL, + `maturity_max_interest_rate` decimal(19,6) NOT NULL, + `can_renew` tinyint(1) NOT NULL DEFAULT '0', + `can_pre_close` tinyint(1) NOT NULL DEFAULT '0', + `pre_closure_interest_rate` decimal(19,6) NOT NULL, `is_deleted` tinyint(1) NOT NULL DEFAULT '0', `createdby_id` bigint(20) DEFAULT NULL, `created_date` datetime DEFAULT NULL,