From 5f5f94d5f27405a3805b03b606d599c0a2c4b857 Mon Sep 17 00:00:00 2001 From: Vishwas Babu A J Date: Thu, 13 Nov 2014 17:57:41 +0530 Subject: [PATCH] updates to nth day logic --- .../core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql | 3 +++ .../V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 mifosng-provider/src/main/resources/sql/migrations/core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql create mode 100644 mifosng-provider/src/main/resources/sql/migrations/core_db/V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql diff --git a/mifosng-provider/src/main/resources/sql/migrations/core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql b/mifosng-provider/src/main/resources/sql/migrations/core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql new file mode 100644 index 000000000..2fa44f74e --- /dev/null +++ b/mifosng-provider/src/main/resources/sql/migrations/core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql @@ -0,0 +1,3 @@ +ALTER TABLE `m_loan` + ADD COLUMN `repayment_frequency_nth_day_enum` SMALLINT(5) NOT NULL DEFAULT '0' AFTER `repayment_period_frequency_enum`, + ADD COLUMN `repayment_frequency_day_of_week_enum` SMALLINT(5) NOT NULL DEFAULT '0' AFTER `repayment_frequency_nth_day_enum`; diff --git a/mifosng-provider/src/main/resources/sql/migrations/core_db/V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql b/mifosng-provider/src/main/resources/sql/migrations/core_db/V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql new file mode 100644 index 000000000..d2596314e --- /dev/null +++ b/mifosng-provider/src/main/resources/sql/migrations/core_db/V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql @@ -0,0 +1,3 @@ +ALTER TABLE `m_loan` + CHANGE COLUMN `repayment_frequency_nth_day_enum` `repayment_frequency_nth_day_enum` SMALLINT(5) NULL DEFAULT '0' AFTER `repayment_period_frequency_enum`, + CHANGE COLUMN `repayment_frequency_day_of_week_enum` `repayment_frequency_day_of_week_enum` SMALLINT(5) NULL DEFAULT '0' AFTER `repayment_frequency_nth_day_enum`;