You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by al...@apache.org on 2022/02/24 08:55:59 UTC

[fineract] branch develop updated: FINERACT-1498: Cleaning up Flyway files

This is an automated email from the ASF dual-hosted git repository.

aleks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new a5672fb  FINERACT-1498: Cleaning up Flyway files
a5672fb is described below

commit a5672fbe259b295516d18000c90ab23de62c1e65
Author: Arnold Galovics <ga...@gmail.com>
AuthorDate: Wed Feb 23 21:42:58 2022 +0100

    FINERACT-1498: Cleaning up Flyway files
---
 .../core_db/V100__Group_saving_summary_report.sql  |  20 -
 ..._add_mulitplesof_to_account_transfers_table.sql |  21 -
 .../core_db/V102__client_attendance_tables.sql     |  49 --
 .../V103__cluster_support_for_batch_jobs.sql       |  33 -
 .../core_db/V104__permissions_for_transfers.sql    |  30 -
 ...V105__track_loan_transaction_against_office.sql |  34 -
 .../V106__more_permissions_for_transfers.sql       |  49 --
 .../core_db/V107__datatable_code_mappings.sql      |  30 -
 .../core_db/V108__client_has_transfer_office.sql   |  28 -
 ...count_transfer_withdrawal_fee_configuration.sql |  24 -
 .../V10__interest-posting-fields-for-savings.sql   |  31 -
 .../core_db/V110__group_center_close.sql           |  27 -
 ...suspense_account_for_existing_loan_products.sql |  23 -
 ...nstraint_approach_for_datatables_by_default.sql |  20 -
 .../core_db/V112__mixreport_sql_support.sql        | 132 ---
 ...3__track_savings_transaction_against_office.sql |  34 -
 ...ccount_for_existing_savings_products - Copy.sql |  23 -
 .../core_db/V115__permissions_for_cache_api.sql    |  38 -
 .../V116__track_currency_for_journal_entries.sql   |  48 -
 .../core_db/V117__loan_charge_from_savings.sql     |  43 -
 .../V118_1__savings_charge_patch_update.sql        |  22 -
 ...e_duplicate_fund_source_to_account_mappings.sql |  20 -
 ...ns_form_propose_and_accept_client_transfers.sql |  25 -
 ...pense_account_for_existing_savings_products.sql |  27 -
 ...8_5__batch_job_entry_for_pay_savings_charge.sql |  20 -
 ...r_income_from_penalties_for savings_product.sql |  24 -
 ...18_7__move_withdrawal_annual_fee_to_charges.sql | 272 ------
 ...verpayments_seperately_in_loan_transactions.sql |  35 -
 .../migrations/core_db/V118__savings_charge.sql    |  83 --
 .../core_db/V119__add_template_table.sql           |  53 --
 .../core_db/V11__add-payment-details.sql           |  43 -
 .../core_db/V120__accounting_running_balance.sql   |  24 -
 ...accounting_running_balance_for_organization.sql |  23 -
 .../V122__recurring_fee_support_for_savings.sql    |  27 -
 .../V123__remove_payment_mode_for_savings.sql      |  21 -
 .../V124__added_min_max_cap_for_charges.sql        |  26 -
 ..._column_for_actual_fee_amount_or_percentage.sql |  21 -
 ...initial_database_structure_for_sms_outbound.sql |  55 --
 .../migrations/core_db/V127__mobile_no_fields.sql  |  27 -
 .../V128__added_loan_installment_charge.sql        |  38 -
 .../core_db/V129__client_and_group_timeline.sql    |  28 -
 .../V12__add_external_id_to_couple_of_tables.sql   |  45 -
 .../core_db/V130__calendar-history-table.sql       |  38 -
 ...V131__holiday-status-column-and-permissions.sql |  35 -
 .../core_db/V132__borrower_cycle_changes.sql       |  38 -
 ...3__adding_payment_detail_with_journal_entry.sql |  28 -
 ...V134_1__submitted_date_updation_for_clients.sql |  24 -
 .../V134_2__permissions_spelling_correction.sql    |  20 -
 ...V134__added_column_value_on_c_configuration.sql |  31 -
 ...V135__added_permission_for_undo_written_off.sql |  20 -
 .../V136_1__update_script_strechy_parameter.sql    |  20 -
 .../V137__added_is_active_column_in_m_staff.sql    |  20 -
 ...me_for_m_product_loan_and_m_savings_product.sql |  37 -
 ...ue_for_is_active_updated_to_true_in_m_staff.sql |  22 -
 ..._add_group_and_client_pending_configuration.sql |  38 -
 ...ed_payment_detail_id_in_ac_gl_journal_entry.sql |  22 -
 .../core_db/V140__added_loan_charge_status.sql     |  21 -
 .../core_db/V141__add_early_repayment_strategy.sql |  22 -
 ...V142__read_savingsaccount_charge_permission.sql |  20 -
 ...143__create_journalentry_checker_permission.sql |  20 -
 .../core_db/V144__spelling_mistake_corrections.sql |  23 -
 ...add_force_password_reset_in_c_configuration.sql |  36 -
 .../sql/migrations/core_db/V146__tranche_loans.sql |  57 --
 .../V147__tranche_loans_column_name_changes.sql    |  23 -
 .../migrations/core_db/V148__overdraft_changes.sql |  33 -
 .../V149__add_created_date_savings_transaction.sql |  23 -
 .../core_db/V14__rename_status_id_to_enum.sql      |  27 -
 .../core_db/V150__basic_savings_report.sql         |  49 --
 ...V151__add_default_savings_account_to_client.sql |  24 -
 .../core_db/V152__added_grace_for_over_due.sql     |  24 -
 .../core_db/V153__Insert_missed_permissions.sql    |  28 -
 .../sql/migrations/core_db/V154__aging_details.sql |  20 -
 .../core_db/V155__stretchy_into_pentaho.sql        | 735 ----------------
 .../V156__added_loan_saving_txns_pentaho.sql       |  28 -
 .../core_db/V157__overdue_charge_improvements.sql  |  37 -
 .../V158__dashboard_and_navigation_queries.sql     |  36 -
 ...action_id_column_m_portfolio_command_source.sql |  21 -
 .../migrations/core_db/V15__center_permissions.sql |  26 -
 ...Allow_nullValue_For_principal_on_lonProduct.sql |  20 -
 .../core_db/V160__standing_instruction_changes.sql | 144 ---
 .../core_db/V161__added_accrual_batch_job.sql      |  25 -
 .../core_db/V162__overdue_charge_batch_job.sql     |  20 -
 .../core_db/V163__added_npa_for_loans.sql          |  26 -
 .../core_db/V164__fd_and_rd_deposit_tables.sql     | 256 ------
 ...d_permission_for_disburse_to_saving_account.sql |  20 -
 ...posit_amount_to_product_term_and_preclosure.sql |  26 -
 ...dded_columns_for_writtenOff_loans_recovered.sql |  46 -
 ...er_fixed_deposit_interest_to_linked_account.sql |  28 -
 ...reports_to_core_reports_use_report_to_false.sql |  20 -
 .../V16__drop_min_max_column_on_loan_table.sql     |  26 -
 ...pdate_deposit_accounts_maturity_details_job.sql |  20 -
 ...171__added_mandatory_savings_and_rd_changes.sql |  90 --
 .../V172__accounting_changes_for_transfers.sql     |  40 -
 .../resources/sql/migrations/core_db/V173__ppi.sql | 122 ---
 .../core_db/V174__remove_interest_accrual.sql      |  22 -
 .../V175__added_incentive_interest_rates.sql       |  68 --
 ...176__updates_to_financial_activity_accounts.sql |  34 -
 .../V177__cleanup_for_client_incentives.sql        |  21 -
 ..._updates_to_financial_activity_accounts_pt2.sql |  35 -
 ..._action_names_for_maker_checker_permissions.sql |  22 -
 .../core_db/V17__update_stretchy_reporting_ddl.sql | 109 ---
 ..._vs_awaitingdisbursal_and_groupnamesbystaff.sql |  21 -
 .../core_db/V181__standing_instruction_logging.sql |  30 -
 ...ded_min_required_balance_to_savings_product.sql |  26 -
 ..._added_min_balance_for_interest_calculation.sql |  24 -
 ...te_min_required_balance_for_savings_product.sql |  24 -
 ..._add_accrual_till_date_for_periodic_accrual.sql |  21 -
 .../core_db/V186__added_periodic_accrual_job.sql   |  22 -
 .../V187__added_permission_to_periodic_accrual.sql |  20 -
 ...8__add_savingscharge_inactivate_permissions.sql |  24 -
 .../V189__m_loan_interest_recalculation_tables.sql |  50 --
 .../V18__update_stretchy_reporting_reportSql.sql   |  25 -
 ...ssociategroup_disassociategroup_permissions.sql |  23 -
 ...update_gl_account_increase_size_of_name_col.sql |  21 -
 .../core_db/V192__interest_recalculate_job.sql     |  26 -
 .../V193__added_column_joiningDate_for_staff.sql   |  21 -
 ...nterestComponent_for_interest_recalculation.sql |  21 -
 ...V195__moved_rest_frequency_to_product_level.sql |  28 -
 ..._added_loan_running_balance_to_transactions.sql |  21 -
 ...pdated_loan_running_balance_of_transactions.sql |  32 -
 ...8__loan_rescheduling_tables_and_permissions.sql |  92 --
 ...removed_extra_columns_from_schedule_history.sql |  39 -
 .../V19__report_maintenance_permissions.sql        |  33 -
 .../core_db/V1__mifosplatform-core-ddl-latest.sql  | 965 ---------------------
 ...account_for_start_interest_calculation_date.sql |  21 -
 .../sql/migrations/core_db/V201__webhooks.sql      | 125 ---
 .../V202__savings_officer_history_table.sql        |  38 -
 .../V203__added_subbmittedDate_loantransaction.sql |  22 -
 ...ert_script_for_charges_paid_by_for_accruals.sql |  20 -
 ...or_charge_and_interest_waiver_with_accruals.sql |  24 -
 .../V206__interest_posting_configuration.sql       |  26 -
 .../core_db/V207__min_max_clients_per_group.sql    |  22 -
 .../V208__min_max_clients_in_group_redux.sql       |  28 -
 ..._add_all_report_names_in_m_permission_table.sql |  60 --
 ...20__report_maint_perms_really_configuration.sql |  21 -
 .../V210__track_manually_adjusted_transactions.sql |  21 -
 ..._days_between_disbursal_and_first_repayment.sql |  21 -
 ...V212__add_NthDay_and_DayOfWeek_columns_loan.sql |  22 -
 ...ay_and_DayOfWeek_columns_should_be_nullable.sql |  22 -
 ...__alter_table_add_create_SI_at_disbursement.sql |  20 -
 .../V215__guarantee_on_hold_fund_changes.sql       |  37 -
 .../V216__adding_loan_proposed_amount_to_loan.sql  |  21 -
 ..._client_substatus_and_codevalue_description.sql |  30 -
 ..._and_datetime_for_loan_savings_transactions.sql |  27 -
 ..._guarantor_on_hold_fund_changes_for_account.sql |  65 --
 .../V21__activation-permissions-for-clients.sql    |  27 -
 .../core_db/V220_1__prefix_type_account_number.sql |  23 -
 .../core_db/V220__account_number_preferences.sql   |  41 -
 .../V221__add_version_for_m_savings_account.sql    |  21 -
 ...antor_on_hold_fund_changes_for_transactions.sql |  32 -
 .../V223__add_version_for_m_loan_account.sql       |  21 -
 .../V224__client_lifecycle_adding_statuses.sql     |  52 --
 ...sions_for_updating_recurring_deposit_amount.sql |  22 -
 ...ation_for_enforcing_calendars_for_jlg_loans.sql |  20 -
 .../core_db/V227__loan-refund-permissions.sql      |  34 -
 .../core_db/V228__entity_to_entity_access.sql      |  64 --
 .../core_db/V229__teller_cash_management.sql       | 126 ---
 ...alter-group-for-consistency-add-permissions.sql |  38 -
 ...0__role_status_and_correspoding_permissions.sql |  24 -
 ...__m_cashier_transaction_added_currency_code.sql |  20 -
 .../core_db/V232__insert_center_closure_reason.sql |  20 -
 .../core_db/V233__Savings_Transaction_Receipt.sql  |  27 -
 .../core_db/V234__opening_balaces_setup.sql        |  53 --
 .../core_db/V235__add_ugd_template_id_m_hook.sql   |  21 -
 ...36__individual_collection_sheet_permissions.sql |  21 -
 ...7__add_threshold_config_for_last_instalment.sql |  23 -
 .../V238__update_staff_display_name_length.sql     |  23 -
 .../core_db/V239__Loan_Transaction_Receipt.sql     |  21 -
 ...sable-configuration-for-client-group-status.sql |  23 -
 ...ars_aging_config_for_interest_recalculation.sql |  24 -
 .../migrations/core_db/V241__fixed_emi_changes.sql |  22 -
 .../V242__entitytoentitymappingrelation.sql        |  57 --
 .../V243__alter_loan_disbursement_details.sql      |  21 -
 .../V244__staff_assignment_history_table.sql       |  41 -
 .../migrations/core_db/V245__open_rd_changes.sql   |  20 -
 ...__drop_group_client_foreign_key_from_m_loan.sql |  21 -
 ...pelling_principalThresholdForLastInstalment.sql |  22 -
 .../V248__added_password_never_expired_to_User.sql |  20 -
 .../core_db/V249__workingdays_permissions.sql      |  52 --
 ...client-foreign-key-constraint-in-loan-table.sql |  26 -
 .../core_db/V250__password_validation_policy.sql   |  57 --
 .../migrations/core_db/V251__paymentType_table.sql |  65 --
 .../V252__bug_fix_teller_cash_management.sql       |  32 -
 .../V253__product_loan_configurable_attributes.sql |  40 -
 .../core_db/V254__General_Ledger_Report.sql        |  42 -
 .../V255__pre_close_interest_period_config.sql     |  21 -
 ...56__Update script for General_Ledger_report.sql |  51 --
 .../core_db/V257__staff_image_association.sql      |  35 -
 .../core_db/V258__interest_compounding_changes.sql |  29 -
 .../core_db/V259__alter_working_days.sql           |  20 -
 ...nt_reports_for_status_and_activation_change.sql | 101 ---
 .../V260__alter_password_validation_policy.sql     |  23 -
 ...ipt for Client_Loan_Account_Schedule_Report.sql |  22 -
 .../core_db/V262__accountNumber_for_groups.sql     |  21 -
 .../sql/migrations/core_db/V263__mifos_reports.sql |  42 -
 ...sert_paymenttype_and_report_read_permission.sql |  21 -
 .../V265__modify_external_service_schema.sql       |  66 --
 .../sql/migrations/core_db/V266__client_fees.sql   | 103 ---
 .../V267__client_transaction_permissions.sql       |  22 -
 .../core_db/V268__update_gmail_password.sql        |  20 -
 .../V269__increased_calendar_title_length .sql     |  24 -
 ..._add-support-for-withdrawal-fees-on-savings.sql |  31 -
 .../V270__add_rounding_mode_configuration.sql      |  23 -
 .../V271_1__withdrawal_charges_discount.sql        |  40 -
 .../V271_2__withdrawal_charges_paymenttype.sql     |  27 -
 .../V271__accounting_for_client_charges.sql        |  28 -
 .../V272__loan_tranche_disbursement_charge.sql     |  45 -
 .../sql/migrations/core_db/V273__oauth_changes.sql |  61 --
 .../core_db/V274__Loan_Reschedule_Code_Value.sql   |  20 -
 ...n_transaction_to_repayment_schedule_mapping.sql |  34 -
 .../core_db/V276__loan_recalulated_till_date.sql   |  21 -
 .../core_db/V277__Loan_Product_Provisioning.sql    | 123 ---
 .../V278__LoanTransactionProcessingStrategy.sql    |  38 -
 .../migrations/core_db/V279__floating_rates.sql    |  80 --
 .../V27__add-loan-type-column-to-loan-table.sql    |  66 --
 .../core_db/V280__spm_framework_initial_tables.sql |  91 --
 ..._add_configuration_param_backdate-penalties.sql |  22 -
 .../core_db/V282__CustomerSelfService.sql          |  34 -
 .../core_db/V283__Variable_Installments.sql        |  45 -
 .../migrations/core_db/V284__update_codevalue.sql  |  21 -
 .../core_db/V285__undo_last_tranche_script.sql     |  21 -
 .../V286__partial_period_interest_calcualtion.sql  |  28 -
 .../core_db/V287__alter_spm_scorecard.sql          |  38 -
 .../core_db/V288__overdraft_interest.sql           |  27 -
 .../migrations/core_db/V289__client_non_person.sql |  40 -
 ...28__accounting-abstractions-and-autoposting.sql |  65 --
 .../V290__shares_dividends_permissions_script.sql  |  24 -
 .../V291__organisation_start_date_config.sql       |  21 -
 .../V292__update_organisation_start_date.sql       |  20 -
 ...93__interest_rate_chart_support_for_amounts.sql |  32 -
 ...mnettype_application_forDisbursement_charge.sql |  20 -
 ...nterest_charged_date_same_as_disbursal_date.sql |  20 -
 .../V296__skip_repayment_on first-day_of_month.sql |  20 -
 .../core_db/V297__Adding_Meeting_Time_column.sql   |  20 -
 .../core_db/V298__savings_interest_tax.sql         | 125 ---
 .../migrations/core_db/V299__share_products.sql    | 213 -----
 ...V29__add-support-for-annual-fees-on-savings.sql |  32 -
 .../V2__mifosx-base-reference-data-utf8.sql        | 340 --------
 ...figuration_for_allow_changing_of_emi_amount.sql |  23 -
 ...301__recurring_moratorium_principal_periods.sql |  24 -
 .../V302__add_status_to_client_identifier.sql      |  24 -
 .../core_db/V303__Savings_Account_Dormancy.sql     |  37 -
 ...customer_self_service_third_party_transfers.sql |  43 -
 ...y_freq_and_insertion_script_for_accrual_job.sql |  79 --
 ...__add_domancy_tracking_job_to_savings_group.sql |  22 -
 .../migrations/core_db/V307__add_share_notes.sql   |  21 -
 ...d_interest_recalculation_in_savings_account.sql |  21 -
 .../V309__add_loan_write_off_reason_code.sql       |  24 -
 ...add-referenceNumber-to-acc_gl_journal_entry.sql |  21 -
 ...titytoentityaccess_to_entitytoentitymapping.sql |  28 -
 .../core_db/V311__foreclosure_details.sql          |  26 -
 .../V312__add_is_mandatory_to_code_value.sql       |  20 -
 .../core_db/V313__multi_rescheduling_script.sql    | 161 ----
 .../core_db/V314__updating_r_enum_table.sql        | 112 ---
 ...ed_with_disbursement_date_in_m_product_loan.sql |  20 -
 .../V316__address_module_tables_metadat.sql        | 123 ---
 .../core_db/V317__report_mailing_job_module.sql    |  80 --
 .../sql/migrations/core_db/V318__topuploan.sql     |  39 -
 .../migrations/core_db/V319__client_undoreject.sql |  25 -
 .../migrations/core_db/V31__drop-autopostings.sql  |  20 -
 .../V320__add_holiday_payment_reschedule.sql       |  20 -
 .../V321__boolean_field_As_Interest_PostedOn.sql   |  21 -
 .../core_db/V322_1__scheduled_email_campaign.sql   | 167 ----
 .../core_db/V322_2__email_business_rules.sql       |  38 -
 .../sql/migrations/core_db/V322__sms_campaign.sql  | 275 ------
 ...323__spm_replace_dead_fk_with_exisiting_one.sql |  38 -
 ...V324_1__add_entity_subtype_registered_table.sql |  20 -
 .../migrations/core_db/V324__datatable_checks.sql  |  43 -
 .../core_db/V325__add_is_staff_client_data.sql     |  21 -
 ...26__data_migration_for_client_tr_gl_entries.sql |  20 -
 .../core_db/V327_1__creditbureau_integration.sql   |  76 --
 .../core_db/V327__creditbureau_configuration.sql   |  89 --
 .../core_db/V328__family_members_sql_support.sql   |  60 --
 .../V329__sms_messages_without_campaign.sql        |  20 -
 ...disassociate-clients-from-group-permissions.sql |  23 -
 ...V330__savings_account_transaction_releaseId.sql |  45 -
 .../core_db/V331__holiday_schema_changes.sql       |  23 -
 .../V332__self_service_registration_schema.sql     |  38 -
 .../sql/migrations/core_db/V333__adhocquery.sql    |  49 --
 .../core_db/V334__notification_module_tables.sql   |  46 -
 .../core_db/V335__self_service_user_role.sql       |  20 -
 .../core_db/V336__sms_campaign_notification.sql    |  47 -
 .../core_db/V337__equal_amortization.sql           |  21 -
 .../core_db/V338__two_factor_authentication.sql    |  63 --
 .../core_db/V339__report-run-frequency.sql         |  22 -
 ...p_unique_check_on_stretchy_report_parameter.sql |  22 -
 .../core_db/V340__nullable-adhoc-email.sql         |  20 -
 .../migrations/core_db/V341__m_import_document.sql |  39 -
 .../core_db/V342__topic_module_table.sql           |  45 -
 .../V343__scheduled_email_campaign_status.sql      |  20 -
 ...d_paging_recalculate_interest_for_loans_job.sql |  33 -
 .../V345__reports_for_self_service_user.sql        |  28 -
 .../V346__nullable_saving_product_description.sql  |  20 -
 .../core_db/V347__correcting_report_category.sql   |  31 -
 .../core_db/V348__m_trial_balance_table.sql        |  36 -
 .../core_db/V349__client_transfer_details.sql      |  41 -
 ...d_unique_check_on_stretchy_report_parameter.sql |  21 -
 .../sql/migrations/core_db/V350__email_from.sql    |  41 -
 .../migrations/core_db/V351__pocket_mapping.sql    |  40 -
 .../sql/migrations/core_db/V352__interop_init.sql  |  86 --
 .../core_db/V353__migrate_passwords_to_ss_5.sql    |  21 -
 .../V354__self_service_user_unique_for_client.sql  |  20 -
 .../sql/migrations/core_db/V355__rates.sql         |  67 --
 .../core_db/V356__GSIM_migration_script.sql        |  63 --
 .../core_db/V357__GLIM_migration_script.sql        |  52 --
 .../V358__fixed_deposit_rollover_transfer.sql      |  21 -
 .../core_db/V359__remove_fied_from_address.sql     |  20 -
 ...35__add_hierarchy_column_for_acc_gl_account.sql |  20 -
 .../core_db/V360__conf_loan_payday_on_holiday.sql  |  22 -
 .../core_db/V361__conf_interest_appropriations.sql |  22 -
 .../core_db/V362__reschedule_interest_to_lrs.sql   |  22 -
 .../V363__mnote_indexing_for_performance.sql       |  21 -
 .../core_db/V364__elastic_hook_template.sql        |  33 -
 .../V365__reportCategoryList-FINERACT-1306.sql     |  22 -
 ...e_leading_or_trailing_spaces_in_reportnames.sql |  23 -
 .../core_db/V367__reports_for_email_campaigns.sql  |  26 -
 .../core_db/V368__collateral_management.sql        |  73 --
 .../V369__repayment_with_post_dated_checks.sql     |  40 -
 .../V36__add_tag_id_column_for_acc_gl_account.sql  |  24 -
 .../V370__message_gateway_hook_template.sql        |  27 -
 .../core_db/V371__loan_net_disbursal_amount.sql    |  21 -
 .../core_db/V372__fixed_principal_percentage.sql   |  21 -
 .../core_db/V373__node_aware_scheduler_jobs.sql    |  26 -
 ..._adding_expenseliablity_to_paymentorfeetype.sql |  25 -
 ...it_interest_next_day_for_period_end_posting.sql |  22 -
 .../V376__savings_last_transaction_date.sql        |  24 -
 ..._for_parallelizing_savings_interest_posting.sql |  22 -
 ...iguration_for_variable_length_acoountNumber.sql |  20 -
 .../core_db/V379__user_cannot_change_password.sql  |  20 -
 ...d-center-group-collection-sheet-permissions.sql |  22 -
 ...80__configuration_for_random_account_number.sql |  20 -
 .../V381__update_currencies_new_currencies.sql     |  28 -
 .../V38__add-group-summary-details-report.sql      |  89 --
 .../migrations/core_db/V390__clientdoc-code.sql    |  20 -
 .../core_db/V391__add_transaction_ref_column.sql   |  22 -
 .../V392__interest_recovery_conf_for_rescedule.sql |  29 -
 .../core_db/V39__payment-channels-updates.sql      |  36 -
 ...__mifosx-permissions-and-authorisation-utf8.sql | 354 --------
 .../V40__add_permissions_for_accounting_rule.sql   |  20 -
 .../core_db/V41__group-summary-reports.sql         | 108 ---
 ...efault_value_for_id_for_acc_accounting_rule.sql |  21 -
 .../core_db/V43__accounting-for-savings.sql        |  30 -
 .../V44__document-increase-size-of-column-type.sql |  21 -
 .../core_db/V45__create_acc_rule_tags_table.sql    |  30 -
 .../core_db/V46__extend_datatables_api.sql         |  28 -
 .../core_db/V47__staff-hierarchy-link-to-users.sql |  33 -
 .../migrations/core_db/V48__adding-S3-Support.sql  |  97 ---
 ...V49__track-loan-charge-payment-transactions.sql |  32 -
 .../core_db/V4__mifosx-core-reports-utf8.sql       |  30 -
 .../V50__add-grace-settings-to-loan-product.sql    |  28 -
 ...-details-related-to-installment-performance.sql |  24 -
 ...boolean_support_cols_to_acc_accounting_rule.sql |  25 -
 ...ck-advance-and-late-payments-on-installment.sql |  22 -
 .../V54__charge-to-income-account-mappings.sql     |  22 -
 ...dditional-transaction-processing-strategies.sql |  31 -
 .../V56__track-overpaid-amount-on-loans.sql        |  21 -
 ...bit_and_credit_accounts_acc_accounting_rule.sql |  22 -
 .../core_db/V58__create-holiday-tables_changed.sql |  41 -
 ...V59__add_group_roles_schema_and_permissions.sql |  41 -
 ...__update-savings-product-and-account-tables.sql |  30 -
 .../core_db/V60__quipo_dashboard_reports.sql       | 337 -------
 .../core_db/V61__txn_running_balance_example.sql   | 143 ---
 .../V62__add_staff_id_to_m_client_changed.sql      |  24 -
 ...nc_disbursement_with_meeting_column_to_loan.sql |  23 -
 .../V64__add_permission_for_assign_staff.sql       |  20 -
 .../core_db/V65__fix_rupee_symbol_issues.sql       |  24 -
 .../core_db/V66__client_close_functionality.sql    |  26 -
 .../core_db/V67__loans_in_advance_table.sql        |  31 -
 .../V68__quipo_dashboard_reports_updated.sql       | 343 --------
 .../core_db/V69__loans_in_advance_initialise.sql   |  38 -
 .../V6__add_min_max_principal_column_to_loan.sql   |  26 -
 .../V70__quipo_program_detail_query_fix.sql        |  57 --
 ...nsert_reschedule_repayment_to_configuration.sql |  20 -
 .../core_db/V72__add_m_loan_counter_changes.sql    |  38 -
 ...cheduled_to_and_processed_column_to_holiday.sql |  22 -
 .../V74__alter_m_loan_counter_table_add_group.sql  |  23 -
 ...ule-repayments-on-holidays_to_configuration.sql |  20 -
 .../core_db/V76__rename_permission_grouping.sql    |  31 -
 .../core_db/V77__alter_m_product_loan_changes.sql  |  21 -
 .../core_db/V78__breakdown_portfolio_grouping.sql  |  24 -
 .../core_db/V79__schedule_jobs_tables.sql          |  60 --
 .../V7__remove_read_makerchecker_permission.sql    |  32 -
 .../core_db/V80__schedule_jobs_tables_updates.sql  |  39 -
 .../core_db/V81__savings_related_changes.sql       |  88 --
 ...dule_jobs_tables_updates_for_running_status.sql |  24 -
 .../core_db/V83__non-working-days-table.sql        |  30 -
 .../V84__undo_savings_transaction_permission.sql   |  24 -
 .../core_db/V85__product_mix_related_changes.sql   |  38 -
 .../core_db/V86__update-working-days.sql           |  21 -
 .../core_db/V87__add_permission_for_scheduler.sql  |  20 -
 ...__added_update_constrain_for_scheduler_jobs.sql |  21 -
 .../core_db/V89__added_scheduler_group.sql         |  21 -
 ...posit-transaction-permissions-if-they-exist.sql |  20 -
 .../V90__client_performance_history_reports.sql    |  21 -
 ...ion_settings_for_holiday_and_non_workingday.sql |  21 -
 .../core_db/V91__apply_annual_fees_permission.sql  |  24 -
 .../V92__group_center_assign_staff_permission.sql  |  21 -
 .../core_db/V93__loan_transaction_external_id.sql  |  22 -
 .../core_db/V94__added_savings_accont type.sql     |  21 -
 .../core_db/V95__batch_job_postInterest.sql        |  20 -
 .../V96__savings_accounts_transfers_table.sql      |  75 --
 ...d_permission_for_adjust_savings_transaction.sql |  20 -
 .../V98__added_currency_roundof_for_multipleof.sql |  31 -
 ...n_max_constraint_column_to_loan_loanproduct.sql |  56 --
 .../list_db/V1__mifos-platform-shared-tenants.sql  | 113 ---
 .../V2__externalize-connection-properties.sql      |  33 -
 .../list_db/V3__deadlock-retry-properties.sql      |  22 -
 ...columns_and_tenants_server_connection_table.sql |  80 --
 .../V5__add_schema_connection_parameters.sql       |  24 -
 .../list_db/V6__add_unique_tenant_identifier.sql   |  20 -
 410 files changed, 18291 deletions(-)

diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V100__Group_saving_summary_report.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V100__Group_saving_summary_report.sql
deleted file mode 100644
index cb4754e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V100__Group_saving_summary_report.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('GroupSavingSummary', 'Table', NULL, NULL, 'select ifnull(cur.display_symbol, sa.currency_code) as currency,\ncount(sa.id) as totalSavingAccounts, ifnull(sum(sa.account_balance_derived),0) as totalSavings\nfrom m_group topgroup\njoin m_office o on o.id = topgroup.office_id and o.hierarchy like concat(\'${currentUserHierarchy}\ [...]
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V101__add_mulitplesof_to_account_transfers_table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V101__add_mulitplesof_to_account_transfers_table.sql
deleted file mode 100644
index ae3e8ba..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V101__add_mulitplesof_to_account_transfers_table.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account_transfer`
-ADD COLUMN `currency_multiplesof` SMALLINT NULL DEFAULT NULL AFTER `currency_digits`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V102__client_attendance_tables.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V102__client_attendance_tables.sql
deleted file mode 100644
index 8f015c9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V102__client_attendance_tables.sql
+++ /dev/null
@@ -1,49 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_meeting` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `calendar_instance_id` BIGINT NOT NULL,
-    `meeting_date` DATE NOT NULL,
-    PRIMARY KEY (`id`),
-    UNIQUE INDEX `unique_calendar_instance_id_meeting_date` (`calendar_instance_id`, `meeting_date`),
-    CONSTRAINT `FK_m_calendar_instance_m_meeting` FOREIGN KEY (`calendar_instance_id`) REFERENCES `m_calendar_instance` (`id`)
-)
-COLLATE='latin1_swedish_ci'
-ENGINE=InnoDB;
-
-CREATE TABLE `m_client_attendance` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `client_id` BIGINT NOT NULL DEFAULT '0',
-    `meeting_id` BIGINT NOT NULL,
-    `attendance_type_enum` SMALLINT NOT NULL,
-    PRIMARY KEY (`id`),
-    UNIQUE INDEX `unique_client_meeting_attendance` (`client_id`, `meeting_id`),
-    INDEX `FK_m_meeting_m_client_attendance` (`meeting_id`),
-    CONSTRAINT `FK_m_client_m_client_attendance` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
-    CONSTRAINT `FK_m_meeting_m_client_attendance` FOREIGN KEY (`meeting_id`) REFERENCES `m_meeting` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'CREATE_MEETING', 'MEETING', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'UPDATE_MEETING', 'MEETING', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'DELETE_MEETING', 'MEETING', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'SAVEORUPDATEATTENDANCE_MEETING', 'MEETING', 'SAVEORUPDATEATTENDANCE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V103__cluster_support_for_batch_jobs.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V103__cluster_support_for_batch_jobs.sql
deleted file mode 100644
index 3f8eb9c..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V103__cluster_support_for_batch_jobs.sql
+++ /dev/null
@@ -1,33 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `job`
-    ADD COLUMN `is_misfired` tinyint NOT NULL DEFAULT '0' AFTER `scheduler_group`;
-
-CREATE TABLE `scheduler_detail` (
-    `id` SMALLINT NOT NULL AUTO_INCREMENT,
-    `is_suspended` tinyint NOT NULL DEFAULT '0',
-    `execute_misfired_jobs` tinyint NOT NULL DEFAULT '1',
-    `reset_scheduler_on_bootup` tinyint NOT NULL DEFAULT '1',
-    PRIMARY KEY (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-INSERT INTO `scheduler_detail` (`is_suspended`, `execute_misfired_jobs`, `reset_scheduler_on_bootup`) VALUES (FALSE,TRUE,TRUE);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V104__permissions_for_transfers.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V104__permissions_for_transfers.sql
deleted file mode 100644
index 27e1026..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V104__permissions_for_transfers.sql
+++ /dev/null
@@ -1,30 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio_group', 'TRANSFERCLIENTS_GROUP', 'GROUP', 'TRANSFERCLIENTS', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio_group', 'TRANSFERCLIENTS_GROUP_CHECKER', 'GROUP', 'TRANSFERCLIENTS', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'TRANSFER_CLIENT', 'CLIENT', 'TRANSFER', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'TRANSFER_CLIENT_CHECKER', 'CLIENT', 'TRANSFER', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V105__track_loan_transaction_against_office.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V105__track_loan_transaction_against_office.sql
deleted file mode 100644
index 40bc111..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V105__track_loan_transaction_against_office.sql
+++ /dev/null
@@ -1,34 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_transaction`
-    ADD COLUMN `office_id` BIGINT NULL DEFAULT NULL AFTER `loan_id`;
-
-/**update client loans**/
-UPDATE m_loan_transaction lt set lt.office_id = (SELECT c.office_id AS officeId FROM m_loan l JOIN m_client c on l.client_id=c.id where l.id=lt.loan_id) where lt.loan_id in (Select l.id from m_loan l where l.client_id is not null);
-
-/**update group loans**/
-UPDATE m_loan_transaction lt set lt.office_id = (SELECT g.office_id AS officeId FROM m_loan l JOIN m_group g on l.group_id=g.id where l.id=lt.loan_id) where lt.loan_id in (Select l.id from m_loan l where l.group_id is not null);
-
-/**Add foreign key constraints**/
-ALTER TABLE `m_loan_transaction`
-    CHANGE COLUMN `office_id` `office_id` BIGINT NOT NULL AFTER `loan_id`;
-
-ALTER TABLE `m_loan_transaction`
-    ADD CONSTRAINT `FK_m_loan_transaction_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V106__more_permissions_for_transfers.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V106__more_permissions_for_transfers.sql
deleted file mode 100644
index 3b76fd9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V106__more_permissions_for_transfers.sql
+++ /dev/null
@@ -1,49 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-DELETE FROM `m_permission` WHERE  `code`="TRANSFER_CLIENT";
-DELETE FROM `m_permission` WHERE  `code`="TRANSFER_CLIENT_CHECKER";
-
-/**Permissions for proposing a transfer**/
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'PROPOSETRANSFER_CLIENT', 'CLIENT', 'PROPOSETRANSFER', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'PROPOSETRANSFER_CLIENT_CHECKER', 'CLIENT', 'PROPOSETRANSFER', 0);
-
-/**Permissions for accepting a transfer**/
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'ACCEPTTRANSFER_CLIENT', 'CLIENT', 'ACCEPTTRANSFER', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'ACCEPTTRANSFER_CLIENT_CHECKER', 'CLIENT', 'ACCEPTTRANSFER', 0);
-
-/**Permissions for rejecting a transfer**/
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'REJECTTRANSFER_CLIENT', 'CLIENT', 'REJECTTRANSFER', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'REJECTTRANSFER_CLIENT_CHECKER', 'CLIENT', 'REJECTTRANSFER', 0);
-
-/**Permissions for withdrawing a transfer proposal**/
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'WITHDRAWTRANSFER_CLIENT', 'CLIENT', 'WITHDRAWTRANSFER', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'WITHDRAWTRANSFER_CLIENT_CHECKER', 'CLIENT', 'WITHDRAWTRANSFER', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V107__datatable_code_mappings.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V107__datatable_code_mappings.sql
deleted file mode 100644
index e4b4bec..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V107__datatable_code_mappings.sql
+++ /dev/null
@@ -1,30 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `x_table_cloumn_code_mappings` (
-    `column_alias_name` VARCHAR(50) NOT NULL,
-    `code_id` INT NOT NULL,
-    PRIMARY KEY (`column_alias_name`),
-    INDEX `FK_x_code_id` (`code_id`),
-    CONSTRAINT `FK_x_code_id` FOREIGN KEY (`code_id`) REFERENCES `m_code` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-INSERT INTO `c_configuration` (`name`, `enabled`) VALUES ('constraint_approach_for_datatables', 1);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V108__client_has_transfer_office.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V108__client_has_transfer_office.sql
deleted file mode 100644
index 8105efa..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V108__client_has_transfer_office.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/***Store destination office Id while client is pending transfers and effective joining date in a particular branch**/
-ALTER TABLE `m_client`
-    ADD COLUMN `office_joining_date` DATE NULL AFTER `activation_date`,
-    ADD COLUMN `transfer_to_office_id` BIGINT NULL AFTER `office_id`,
-    ADD CONSTRAINT `FK_m_client_m_office` FOREIGN KEY (`transfer_to_office_id`) REFERENCES `m_office` (`id`);
-
-
-/**For current Clients, set the office joining date to activation date**/
-update m_client set office_joining_date=activation_date;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V109__account_transfer_withdrawal_fee_configuration.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V109__account_transfer_withdrawal_fee_configuration.sql
deleted file mode 100644
index 4a74b49..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V109__account_transfer_withdrawal_fee_configuration.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_product`
-    ADD COLUMN `withdrawal_fee_for_transfer` TINYINT NULL DEFAULT '1' AFTER `withdrawal_fee_type_enum`;
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `withdrawal_fee_for_transfer` TINYINT NULL DEFAULT '1' AFTER `withdrawal_fee_type_enum`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V10__interest-posting-fields-for-savings.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V10__interest-posting-fields-for-savings.sql
deleted file mode 100644
index 9ba0809..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V10__interest-posting-fields-for-savings.sql
+++ /dev/null
@@ -1,31 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES
-('transaction_savings', 'POSTINTEREST_SAVINGSACCOUNT', 'SAVINGSACCOUNT', 'POSTINTEREST', '1'),
-('transaction_savings', 'POSTINTEREST_SAVINGSACCOUNT_CHECKER', 'SAVINGSACCOUNT', 'POSTINTEREST', '0');
-
-
-ALTER TABLE `m_savings_product`
-ADD COLUMN `interest_posting_period_enum` SMALLINT NOT NULL DEFAULT 4 AFTER `interest_compounding_period_enum`;
-
-
-ALTER TABLE `m_savings_account`
-ADD COLUMN `interest_posting_period_enum` SMALLINT NOT NULL DEFAULT 4 AFTER `interest_compounding_period_enum`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V110__group_center_close.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V110__group_center_close.sql
deleted file mode 100644
index 1986e5e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V110__group_center_close.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_code` (`code_name`, `is_system_defined`) VALUES ('GroupClosureReason', 1);
-
-ALTER TABLE `m_group` ADD COLUMN `closure_reason_cv_id` INT NULL DEFAULT NULL,
-ADD COLUMN `closedon_date` DATE NULL DEFAULT NULL,
-ADD CONSTRAINT `FK_m_group_m_code` FOREIGN KEY (`closure_reason_cv_id`) REFERENCES `m_code_value` (`id`);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`) VALUES ('portfolio', 'CLOSE_GROUP', 'GROUP', 'CLOSE');
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`) VALUES ('portfolio', 'CLOSE_CENTER', 'CENTER', 'CLOSE');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V111_1__set default_transfers_in_suspense_account_for_existing_loan_products.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V111_1__set default_transfers_in_suspense_account_for_existing_loan_products.sql
deleted file mode 100644
index 26a2337..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V111_1__set default_transfers_in_suspense_account_for_existing_loan_products.sql	
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `acc_product_mapping` (`gl_account_id`,`product_id`,`product_type`,`payment_type`,`charge_id`,`financial_account_type`)
-select mapping.gl_account_id,mapping.product_id,mapping.product_type,mapping.payment_type,mapping.charge_id, 10
-from acc_product_mapping mapping
-where mapping.financial_account_type = 1 and mapping.product_type=1;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V111__disable_constraint_approach_for_datatables_by_default.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V111__disable_constraint_approach_for_datatables_by_default.sql
deleted file mode 100644
index 2a3533b..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V111__disable_constraint_approach_for_datatables_by_default.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-update c_configuration set enabled=0 where name="constraint_approach_for_datatables";
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V112__mixreport_sql_support.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V112__mixreport_sql_support.sql
deleted file mode 100644
index d1f39a6..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V112__mixreport_sql_support.sql
+++ /dev/null
@@ -1,132 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES
-('xbrlmapping', 'UPDATE_XBRLMAPPING', 'XBRLMAPPING', 'UPDATE', 0);
-
-DROP TABLE IF EXISTS `mix_taxonomy`;
-
-CREATE TABLE `mix_taxonomy` (
-  `id` INT unsigned NOT NULL AUTO_INCREMENT,
-  `name` varchar(100) DEFAULT NULL,
-  `namespace_id` INT DEFAULT NULL,
-  `dimension` varchar(100) DEFAULT NULL,
-  `type` INT DEFAULT NULL,
-  `description` varchar(1000) DEFAULT NULL,
-  `need_mapping` tinyint DEFAULT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-LOCK TABLES `mix_taxonomy` WRITE;
-
-INSERT INTO `mix_taxonomy` (`id`, `name`, `namespace_id`, `dimension`, `type`, `description`, `need_mapping`)
-VALUES
-    (1,'AdministrativeExpense',1,NULL,3,NULL,1),
-    (2,'Assets',3,NULL,1,'All outstanding principals due for all outstanding client loans. This includes current, delinquent, and renegotiated loans, but not loans that have been written off. It does not include interest receivable.',1),
-    (3,'Assets',3,'MaturityDimension:LessThanOneYearMember',1,'Segmentation based on the life of an asset or liability.',1),
-    (4,'Assets',3,'MaturityDimension:MoreThanOneYearMember',1,'Segmentation based on the life of an asset or liability.',1),
-    (5,'CashAndCashEquivalents',1,NULL,1,NULL,1),
-    (6,'Deposits',3,NULL,1,'The total value of funds placed in an account with an MFI that are payable to a depositor. This item includes any current, checking, or savings accounts that are payable on demand. It also includes time deposits which have a fixed maturity date and compulsory deposits.',1),
-    (7,'Deposits',3,'DepositProductsDimension:CompulsoryMember',1,'The value of deposits that an MFI\'s clients are required to  maintain as a condition of an existing or future loan.',NULL),
-    (8,'Deposits',3,'DepositProductsDimension:VoluntaryMember',1,'The value of deposits that an MFI\'s clients are not required to  maintain as a condition of an existing or future loan.',NULL),
-    (9,'Deposits',3,'LocationDimension:RuralMember',1,'Located in rural areas. Segmentation based on location.',NULL),
-    (10,'Deposits',3,'LocationDimension:UrbanMember',1,'Located in urban areas. Segmentation based on location.',NULL),
-    (11,'Deposits',3,'MaturityDimension:LessThanOneYearMember',1,'Segmentation based on the life of an asset or liability.',NULL),
-    (12,'Deposits',3,'MaturityDimension:MoreThanOneYearMember',1,'Segmentation based on the life of an asset or liability.',NULL),
-    (13,'EmployeeBenefitsExpense',1,NULL,3,NULL,NULL),
-    (14,'Equity',1,NULL,1,NULL,NULL),
-    (15,'Expense',1,NULL,3,NULL,NULL),
-    (16,'FinancialExpense',3,NULL,3,'All costs All costs incurred in raising funds from third parties, fee expenses from non-financial services, net gains (losses) due to changes in fair value of financial liabilities, impairment losses net of reversals of financial assets other than loan portfolio and net gains (losses) from restatement of financial statements in terms of the measuring unit current at the end of the reporting period.',NULL),
-    (17,'FinancialRevenueOnLoans',3,NULL,2,'Interest and non-interest income generated by the provision of credit services to the clients. Fees and commissions for late payment are also included.',NULL),
-    (18,'ImpairmentLossAllowanceGrossLoanPortfolio',3,NULL,2,'An allowance for the risk of losses in the gross loan portfolio due to default .',NULL),
-    (19,'Liabilities',1,NULL,1,NULL,NULL),
-    (20,'Liabilities',3,'MaturityDimension:LessThanOneYearMember',1,'Segmentation based on the life of an asset or liability.',NULL),
-    (21,'Liabilities',3,'MaturityDimension:MoreThanOneYearMember',1,'Segmentation based on the life of an asset or liability.',NULL),
-    (22,'LoanPortfolioGross',3,NULL,2,'All outstanding principals due for all outstanding client loans. This includes current, delinquent, and renegotiated loans, but not loans that have been written off. It does not include interest receivable.',NULL),
-    (23,'LoanPortfolioGross',3,'CreditProductsDimension:MicroenterpriseMember',2,'Loans that finance the production or trade of goods and  services for an individual\'s microenterprise, whether or not the microenterprise is legally registered. Segmentation based on loan product.',NULL),
-    (24,'LoanPortfolioGross',3,'DelinquencyDimension:OneMonthOrMoreMember',2,'Segmentation based on the principal balance of all loans outstanding that have one or more installments of principal  past due or renegotiated. Segmentation based on the  principal balance of all loans outstanding that have one or  more installments of principal past due or renegotiated.',NULL),
-    (25,'LoanPortfolioGross',3,'DelinquencyDimension:ThreeMonthsOrMoreMember',2,'Segmentation based on the principal balance of all loans outstanding that have one or more installments of principal  past due or renegotiated.? Segmentation based on the  principal balance of all loans outstanding that have one or  more installments of principal past due or renegotiated.',NULL),
-    (26,'LoanPortfolioGross',3,'LocationDimension:RuralMember',2,'Located in rural areas. Segmentation based on geographic location.',NULL),
-    (27,'LoanPortfolioGross',3,'LocationDimension:UrbanMember',2,'Located in urbal areas. Segmentation based on geographic location.',NULL),
-    (28,'LoanPortfolioGross',3,'MaturityDimension:LessThanOneYearMember',2,'Segmentation based on the life of an asset or liability.',NULL),
-    (29,'LoanPortfolioGross',3,'MaturityDimension:MoreThanOneYearMember',2,'Segmentation based on the life of an asset or liability.',NULL),
-    (30,'NetLoanLoss',3,'',3,'Referred to the value of delinquency loans written off net of any principal recovery.',NULL),
-    (31,'NetLoanLossProvisionExpense',3,NULL,3,'Represent the net value of loan portfolio impairment loss considering any reversal on impairment loss and any recovery on loans written off recognized as a income during the accounting period.',NULL),
-    (32,'NetOperatingIncome',3,NULL,2,'Total operating revenue less all expenses related to the MFI\'s core financial service operation including total financial expense, impairment loss and operating expense. Donations are excluded.',NULL),
-    (33,'NetOperatingIncomeNetOfTaxExpense',3,NULL,3,'Net operating income reported incorporating the effect of taxes. Taxes include all domestic and foreign taxes which are based on taxable profits, other taxes related to personnel, financial transactions or value-added taxes are not considered in calculation of this value.',NULL),
-    (34,'NumberOfActiveBorrowers',3,NULL,0,'The number of individuals who currently have an outstanding loan balance with the MFI or are primarily responsible for repaying any portion of the gross loan portfolio. Individuals who have multiple loans with an MFI should be counted as a single borrower.',NULL),
-    (35,'NumberOfActiveBorrowers',3,'GenderDimension:FemaleMember',0,'The number of individuals who currently have an outstanding loan balance with the MFI or are primarily responsible for repaying any portion of the gross loan portfolio. Individuals who have multiple loans with an MFI should be counted as a single borrower.',NULL),
-    (36,'NumberOfBoardMembers',3,'GenderDimension:FemaleMember',0,'The number of members that comprise the board of directors at the end of the reporting period who are female.',NULL),
-    (37,'NumberOfDepositAccounts',3,NULL,0,'The number of individuals who currently have funds on deposit with the MFI on a voluntary basis; i.e., they are not required to maintain the deposit account to access a loan. This number applies only to deposits held by an MFI, not to those deposits held in other institutions by the MFI\'s clients. The number should be based on the number of individuals rather than the number of groups. A single deposit account may represent multiple depositors [...]
-    (38,'NumberOfDepositors',3,'',0,'The number of deposit accounts, both voluntary and compulsory, opened at the MFI whose balances the institution is liable to repay. The number should be based on the number of individual accounts rather than on the number of groups.',NULL),
-    (39,'NumberOfEmployees',3,NULL,0,'The number of individuals who are actively employed by an entity. This number includes contract employees or advisors who dedicate a substantial portion of their time to the entity, even if they are not on the entity\'s employees roster.',NULL),
-    (40,'NumberOfEmployees',3,'GenderDimension:FemaleMember',0,'The number of individuals who are actively employed by an entity. This number includes contract employees or advisors who dedicate a substantial portion of their time to the entity, even if they are not on the entity\'s employees roster.',NULL),
-    (41,'NumberOfLoanOfficers',3,NULL,0,'The number of employees whose main activity is to manage a portion of the gross loan portfolio. A loan officer is a staff member of record who is directly responsible for arranging and monitoring client loans.',NULL),
-    (42,'NumberOfLoanOfficers',3,'GenderDimension:FemaleMember',0,'The number of employees whose main activity is to manage a portion of the gross loan portfolio. A loan officer is a staff member of record who is directly responsible for arranging and monitoring client loans.',NULL),
-    (43,'NumberOfManagers',3,'GenderDimension:FemaleMember',0,'The number of members that comprise the management of the institution who are female.',NULL),
-    (44,'NumberOfOffices',3,NULL,0,'The number of staffed points of service and administrative sites used to deliver or support the delivery of financial services to microfinance clients.',NULL),
-    (45,'NumberOfOutstandingLoans',3,NULL,0,'The number of loans in the gross loan portfolio. For MFIs using a group lending methodology, the number of loans should refer to the number of individuals receiving loans as part of a group or as part of a group loan.',NULL),
-    (46,'OperatingExpense',3,NULL,3,'Includes expenses not related to financial and credit loss impairment, such as personnel expenses, depreciation, amortization and administrative expenses.',NULL),
-    (47,'OperatingIncome',3,NULL,2,'Includes all financial income and other operating revenue which is generated from non-financial services. Operating income also includes net gains (losses) from holding financial assets (changes on their values during the period and foreign exchange differences). Donations or any revenue not related with an MFI\'s core business of making loans and providing financial services are not considered under this category.',NULL),
-    (48,'WriteOffsOnGrossLoanPortfolio',3,NULL,2,'The value of loans that have been recognized as uncollectible for accounting purposes. A write-off is an accounting procedure that removes the outstanding balance of the loan from the gross loan portfolio and impairment loss allowance. Thus, the write-off does not affect the net loan portfolio, total assets, or any equity account. If the impairment loss allowance is insufficient to cover the amount written off, the excess amount will resu [...]
-
-UNLOCK TABLES;
-
-
-DROP TABLE IF EXISTS `mix_taxonomy_mapping`;
-
-CREATE TABLE `mix_taxonomy_mapping` (
-  `id` INT unsigned NOT NULL AUTO_INCREMENT,
-  `identifier` varchar(50) NOT NULL DEFAULT '',
-  `config` varchar(200) DEFAULT NULL,
-  `last_update_date` datetime DEFAULT NULL,
-  `currency` varchar(11) DEFAULT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-LOCK TABLES `mix_taxonomy_mapping` WRITE;
-
-INSERT INTO `mix_taxonomy_mapping` (`id`, `identifier`, `config`, `last_update_date`, `currency`) VALUES
-(1,'default',NULL,NULL,'');
-
-UNLOCK TABLES;
-
-
-DROP TABLE IF EXISTS `mix_xbrl_namespace`;
-
-CREATE TABLE `mix_xbrl_namespace` (
-  `id` INT unsigned NOT NULL AUTO_INCREMENT,
-  `prefix` varchar(20) NOT NULL DEFAULT '',
-  `url` varchar(100) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `UNQUE` (`prefix`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-LOCK TABLES `mix_xbrl_namespace` WRITE;
-
-INSERT INTO `mix_xbrl_namespace` (`id`, `prefix`, `url`)
-VALUES
-    (1,'ifrs','http://xbrl.iasb.org/taxonomy/2009-04-01/ifrs'),
-    (2,'iso4217','http://www.xbrl.org/2003/iso4217'),
-    (3,'mix','http://www.themix.org/INT/fr/ifrs/basi/YYYY-MM-DD/mx-cor'),
-    (4,'xbrldi','http://xbrl.org/2006/xbrldi'),
-    (5,'xbrli','http://www.xbrl.org/2003/instance'),
-    (6,'link','http://www.xbrl.org/2003/linkbase'),
-    (7,'dc-all','http://www.themix.org/INT/fr/ifrs/basi/2010-08-31/dc-all');
-UNLOCK TABLES;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V113__track_savings_transaction_against_office.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V113__track_savings_transaction_against_office.sql
deleted file mode 100644
index def2796..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V113__track_savings_transaction_against_office.sql
+++ /dev/null
@@ -1,34 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account_transaction`
-    ADD COLUMN `office_id` BIGINT NULL DEFAULT NULL AFTER `savings_account_id`;
-
-/**update client savings**/
-UPDATE m_savings_account_transaction st set st.office_id = (SELECT c.office_id AS officeId FROM m_savings_account sa JOIN m_client c on sa.client_id=c.id where sa.id=st.savings_account_id) where st.savings_account_id in (Select sa.id from m_savings_account sa where sa.client_id is not null);
-
-/**update group savings**/
-UPDATE m_savings_account_transaction st set st.office_id = (SELECT g.office_id AS officeId FROM m_savings_account sa JOIN m_group g on sa.group_id=g.id where sa.id=st.savings_account_id) where st.savings_account_id in (Select sa.id from m_savings_account sa where sa.group_id is not null);
-
-/**Add foreign key constraints**/
-ALTER TABLE `m_savings_account_transaction`
-    CHANGE COLUMN `office_id` `office_id` BIGINT NOT NULL AFTER `savings_account_id`;
-
-ALTER TABLE `m_savings_account_transaction`
-    ADD CONSTRAINT `FK_m_savings_account_transaction_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V114__set_default_transfers_in_suspense_account_for_existing_savings_products - Copy.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V114__set_default_transfers_in_suspense_account_for_existing_savings_products - Copy.sql
deleted file mode 100644
index 052ebc5..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V114__set_default_transfers_in_suspense_account_for_existing_savings_products - Copy.sql	
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `acc_product_mapping` (`gl_account_id`,`product_id`,`product_type`,`payment_type`,`charge_id`,`financial_account_type`)
-select mapping.gl_account_id,mapping.product_id,mapping.product_type,mapping.payment_type,mapping.charge_id, 10
-from acc_product_mapping mapping
-where mapping.financial_account_type = 1 and mapping.product_type=2;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V115__permissions_for_cache_api.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V115__permissions_for_cache_api.sql
deleted file mode 100644
index 5b3409f..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V115__permissions_for_cache_api.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-DROP TABLE IF EXISTS `c_cache`;
-CREATE TABLE `c_cache` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `cache_type_enum` tinyint NOT NULL DEFAULT '1',
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
-INSERT INTO `c_cache`
-(`id`,`cache_type_enum`)
-VALUES
-(1, 1);
-
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'READ_CACHE', 'CACHE', 'READ', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'UPDATE_CACHE', 'CACHE', 'UPDATE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V116__track_currency_for_journal_entries.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V116__track_currency_for_journal_entries.sql
deleted file mode 100644
index 1214038..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V116__track_currency_for_journal_entries.sql
+++ /dev/null
@@ -1,48 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/**Add currency code**/
-ALTER TABLE `acc_gl_journal_entry`
-        ADD COLUMN `currency_code` VARCHAR(3) NULL DEFAULT NULL AFTER `reversal_id`;
-
-
-/**Update currency codes for loans**/
-UPDATE acc_gl_journal_entry journal_entry SET currency_code = (
-SELECT m_loan.currency_code
-FROM m_loan, m_loan_transaction
-WHERE m_loan.id = m_loan_transaction.loan_id AND m_loan_transaction.id=journal_entry.transaction_id)
-WHERE journal_entry.entity_type_enum=1;
-
-
-/**Update currency codes for savings**/
-UPDATE acc_gl_journal_entry journal_entry SET currency_code = (
-SELECT m_savings_account.currency_code
-FROM m_savings_account, m_savings_account_transaction
-WHERE m_savings_account.id = m_savings_account_transaction.savings_account_id AND m_savings_account_transaction.id=journal_entry.transaction_id)
-WHERE journal_entry.entity_type_enum=2;
-
-/**Update currency codes for manual journal entries***/
-update acc_gl_journal_entry set currency_code = (select code from m_organisation_currency limit 1)
-where acc_gl_journal_entry.currency_code is NULL;
-
-/**Make currency code not null**/
-ALTER TABLE `acc_gl_journal_entry`
-    ALTER `currency_code` DROP DEFAULT;
-ALTER TABLE `acc_gl_journal_entry`
-    CHANGE COLUMN `currency_code` `currency_code` VARCHAR(3) NOT NULL AFTER `reversal_id`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V117__loan_charge_from_savings.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V117__loan_charge_from_savings.sql
deleted file mode 100644
index 55015a7..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V117__loan_charge_from_savings.sql
+++ /dev/null
@@ -1,43 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_portfolio_account_associations` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_account_id` BIGINT NULL DEFAULT NULL,
-    `savings_account_id` BIGINT NULL DEFAULT NULL,
-    `linked_loan_account_id` BIGINT NULL DEFAULT NULL,
-    `linked_savings_account_id` BIGINT NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `account_association_loan_fk` FOREIGN KEY (`loan_account_id`) REFERENCES `m_loan` (`id`),
-    CONSTRAINT `account_association_savings_fk` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`),
-    CONSTRAINT `linked_loan_fk` FOREIGN KEY (`linked_loan_account_id`) REFERENCES `m_loan` (`id`),
-    CONSTRAINT `linked_savings_fk` FOREIGN KEY (`linked_savings_account_id`) REFERENCES `m_savings_account` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-ALTER TABLE `m_charge`
-    ADD COLUMN `charge_payment_mode_enum` SMALLINT NOT NULL DEFAULT '0' AFTER `charge_calculation_enum`;
-
-ALTER TABLE `m_loan_charge`
-    ADD COLUMN `charge_payment_mode_enum` SMALLINT NOT NULL DEFAULT '0' AFTER `charge_calculation_enum`;
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('transaction_loan', 'PAY_LOANCHARGE', 'LOANCHARGE', 'PAY', 0);
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Transfer Fee For Loans From Savings', 'Transfer Fee For Loans From Savings', '0 1 0 1/1 * ? *', now(), 5, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_1__savings_charge_patch_update.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_1__savings_charge_patch_update.sql
deleted file mode 100644
index f9fbfb4..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_1__savings_charge_patch_update.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `total_fees_charge_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `total_withdrawal_fees_derived`,
-    ADD COLUMN `total_penalty_charge_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `total_fees_charge_derived`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_2__product_mapping_delete_duplicate_fund_source_to_account_mappings.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_2__product_mapping_delete_duplicate_fund_source_to_account_mappings.sql
deleted file mode 100644
index e13986d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_2__product_mapping_delete_duplicate_fund_source_to_account_mappings.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-delete from acc_product_mapping  where financial_account_type=10 and payment_type is not null;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_3__permissions_form_propose_and_accept_client_transfers.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_3__permissions_form_propose_and_accept_client_transfers.sql
deleted file mode 100644
index cb48ef7..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_3__permissions_form_propose_and_accept_client_transfers.sql
+++ /dev/null
@@ -1,25 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/**Permissions for proposing and accepting a transfer**/
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'PROPOSEANDACCEPTTRANSFER_CLIENT', 'CLIENT', 'PROPOSEANDACCEPTTRANSFER', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('portfolio', 'PROPOSEANDACCEPTTRANSFER_CLIENT_CHECKER', 'CLIENT', 'PROPOSEANDACCEPTTRANSFER', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_4__reset_default_transfers_in_suspense_account_for_existing_savings_products.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_4__reset_default_transfers_in_suspense_account_for_existing_savings_products.sql
deleted file mode 100644
index 8f8c36d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_4__reset_default_transfers_in_suspense_account_for_existing_savings_products.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/***Delete previously set defaults**/
-delete from acc_product_mapping where financial_account_type=10 and product_type=2;
-
-/***Set the proper defaults**/
-INSERT INTO `acc_product_mapping` (`gl_account_id`,`product_id`,`product_type`,`payment_type`,`charge_id`,`financial_account_type`)
-select mapping.gl_account_id,mapping.product_id,mapping.product_type,mapping.payment_type,mapping.charge_id, 10
-from acc_product_mapping mapping
-where mapping.financial_account_type = 2 and mapping.product_type=2;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_5__batch_job_entry_for_pay_savings_charge.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_5__batch_job_entry_for_pay_savings_charge.sql
deleted file mode 100644
index d42e480..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_5__batch_job_entry_for_pay_savings_charge.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Pay Due Savings Charges', 'Pay Due Savings Charges', '0 0 12 * * ?', '2013-09-23 00:00:00', 5, NULL, NULL, NULL, 'Pay Due Savings ChargesJobDetail1 _ DEFAULT', NULL, 1, 0, 1, 0, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_6__defaults_for_income_from_penalties_for savings_product.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_6__defaults_for_income_from_penalties_for savings_product.sql
deleted file mode 100644
index 2bd6e44..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_6__defaults_for_income_from_penalties_for savings_product.sql	
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/***Set defaults for income from Penalties for existing Saving Products**/
-INSERT INTO `acc_product_mapping` (`gl_account_id`,`product_id`,`product_type`,`payment_type`,`charge_id`,`financial_account_type`)
-select mapping.gl_account_id,mapping.product_id,mapping.product_type,mapping.payment_type,mapping.charge_id, 5
-from acc_product_mapping mapping
-where mapping.financial_account_type = 4 and mapping.product_type=2;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_7__move_withdrawal_annual_fee_to_charges.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_7__move_withdrawal_annual_fee_to_charges.sql
deleted file mode 100644
index 20ee49e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_7__move_withdrawal_annual_fee_to_charges.sql
+++ /dev/null
@@ -1,272 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account_charge`
-    CHANGE COLUMN `due_for_collection_as_of_date` `charge_due_date` DATE NULL DEFAULT NULL AFTER `charge_time_enum`;
-
-ALTER TABLE `m_savings_account_charge`
-    ADD COLUMN `fee_on_month` SMALLINT NULL DEFAULT NULL AFTER `charge_due_date`,
-    ADD COLUMN `fee_on_day` SMALLINT NULL DEFAULT NULL AFTER `fee_on_month`,
-    ADD COLUMN `is_active` tinyint NOT NULL DEFAULT '1' AFTER `waived`;
-
-
-delimiter //
-CREATE PROCEDURE migrate_withdrwal_fees()
-begin
-    declare no_more_rows boolean default false;
-    declare v_currency_code  VARCHAR(3);
-    declare v_withdrawal_fee_type_enum  SMALLINT;
-    declare v_withdrawal_fee_amount_charge_def DECIMAL(19,6);
-    declare v_account_id BIGINT;
-    declare v_withdrawal_fee_amount DECIMAL(19,6);
-    declare t_calculation_percentage DECIMAL(19,6);
-    declare t_calculation_on_amount DECIMAL(19,6);
-    declare t_withdrawal_fee_name VARCHAR(100);
-
-    declare t_charge_id BIGINT;
-    declare t_savings_charge_id BIGINT;
-
-    -- savings transaction variables
-    declare v_savings_transaction_id BIGINT;
-    declare v_transaction_amount DECIMAL(19,6);
-
-
-    declare cursor1 cursor for
-      select sa.currency_code, sa.withdrawal_fee_type_enum, sa.withdrawal_fee_amount
-      from m_savings_account sa where sa.withdrawal_fee_amount is not null and sa.withdrawal_fee_amount > 0 group by sa.currency_code, sa.withdrawal_fee_type_enum, sa.withdrawal_fee_amount;
-
-    declare cursor2 cursor for
-      select sa.id, sa.withdrawal_fee_amount from m_savings_account sa where sa.currency_code=v_currency_code and sa.withdrawal_fee_type_enum=v_withdrawal_fee_type_enum and sa.withdrawal_fee_amount is not null and sa.withdrawal_fee_amount > 0;
-
-    declare cursor3 cursor for
-      select sat.id, sat.amount from m_savings_account_transaction sat
-      where sat.savings_account_id=v_account_id and sat.transaction_type_enum=4;
-
-    declare continue handler for not found
-      set no_more_rows := true;
-
-    open cursor1;
-    LOOP1: loop
-    fetch cursor1 into v_currency_code, v_withdrawal_fee_type_enum, v_withdrawal_fee_amount_charge_def;
-    if no_more_rows then
-        close cursor1;
-        leave LOOP1;
-    end if;
-    -- set withdrawal fee name
-    if(v_withdrawal_fee_type_enum = 1) then
-        set t_withdrawal_fee_name = CONCAT('Withdrawal fee-Flat-',v_currency_code);
-    else
-        set t_withdrawal_fee_name = CONCAT('Withdrawal fee-Percentage-',v_currency_code);
-    end if;
-
-    -- get charge id if already exists
-    set t_charge_id = (select id from m_charge where name = t_withdrawal_fee_name);
-
-    if t_charge_id is null then
-        -- add withdrawal fee to charges
-        INSERT INTO `m_charge` (`name`, `currency_code`, `charge_applies_to_enum`, `charge_time_enum`, `charge_calculation_enum`, `charge_payment_mode_enum`, `amount`, `is_penalty`, `is_active`, `is_deleted`) VALUES (t_withdrawal_fee_name , v_currency_code, 2, 5, v_withdrawal_fee_type_enum, 0, v_withdrawal_fee_amount_charge_def, 0, 1, 0);
-
-        -- get inserted charge id
-        set t_charge_id = last_insert_id();
-    end if;
-
-    open cursor2;
-        LOOP2: loop
-        fetch cursor2 into v_account_id, v_withdrawal_fee_amount;
-        if no_more_rows then
-        set no_more_rows := false;
-        close cursor2;
-        leave LOOP2;
-            end if;
-
-            if (v_withdrawal_fee_type_enum=1) then
-        set t_calculation_percentage = NULL;
-        set t_calculation_on_amount = NULL;
-            else
-                set t_calculation_percentage = v_withdrawal_fee_amount;
-                set v_withdrawal_fee_amount = 0;
-                set t_calculation_on_amount = 0;
-            end if;
-
-            if not exists (select id from m_savings_account_charge sac where
-        sac.savings_account_id=v_account_id and sac.charge_id=t_charge_id and sac.charge_time_enum=5) then
-
-                -- attach withdrawal charge to savings
-                INSERT INTO `m_savings_account_charge` (`savings_account_id`, `charge_id`, `is_penalty`, `charge_time_enum`, `charge_due_date`, `fee_on_month`, `fee_on_day`, `charge_calculation_enum`, `calculation_percentage`, `calculation_on_amount`, `amount`, `amount_paid_derived`, `amount_waived_derived`, `amount_writtenoff_derived`, `amount_outstanding_derived`, `is_paid_derived`, `waived`, `is_active`) VALUES (v_account_id, t_charge_id, 0, 5, NULL, NULL, NULL, v_withdrawal_fee_type_ [...]
-
-                -- set savings account charge id
-                set t_savings_charge_id = last_insert_id();
-
-            else
-
-            set t_savings_charge_id = (select id from m_savings_account_charge sac where sac.savings_account_id=v_account_id and sac.charge_id=t_charge_id and sac.charge_time_enum=5);
-
-            end if;
-
-
-            open cursor3;
-            LOOP3: loop
-        fetch cursor3 into v_savings_transaction_id, v_transaction_amount;
-
-            if no_more_rows then
-            set no_more_rows := false;
-            close cursor3;
-            leave LOOP3;
-                end if;
-
-                if not exists (select id from m_savings_account_charge_paid_by sacp where
-        sacp.savings_account_transaction_id=v_savings_transaction_id and sacp.savings_account_charge_id=t_savings_charge_id) then
-
-                    -- insert a record into savings account charge paid by
-                    INSERT INTO `m_savings_account_charge_paid_by` (`savings_account_transaction_id`, `savings_account_charge_id`, `amount`) VALUES(v_savings_transaction_id, t_savings_charge_id, v_transaction_amount);
-
-                end if;
-
-            end loop LOOP3;
-        end loop LOOP2;
-    end loop LOOP1;
-end //
-
-CREATE PROCEDURE migrate_annual_fees()
-begin
-    declare no_more_rows boolean default false;
-    declare v_currency_code  VARCHAR(3);
-    declare v_annual_fee_amount_charge_def DECIMAL(19,6);
-    declare v_account_id BIGINT;
-    declare v_annual_fee_amount DECIMAL(19,6);
-    declare v_annual_fee_on_month SMALLINT;
-    declare v_annual_fee_on_day SMALLINT;
-    declare v_annual_fee_next_due_date DATE;
-    declare t_annual_fee_name VARCHAR(100);
-    declare t_charge_id BIGINT;
-    declare t_savings_charge_id BIGINT;
-
-    -- savings transaction variables
-    declare v_savings_transaction_id BIGINT;
-    declare v_transaction_amount DECIMAL(19,6);
-
-
-    declare cursor1 cursor for
-      select sa.currency_code, sa.annual_fee_amount
-      from m_savings_account sa where sa.annual_fee_amount is not null and sa.annual_fee_on_month is not null and sa.annual_fee_on_day is not null group by sa.currency_code, sa.annual_fee_amount;
-
-    declare cursor2 cursor for
-      select sa.id, sa.annual_fee_amount, sa.annual_fee_on_month, sa.annual_fee_on_day, sa.annual_fee_next_due_date from m_savings_account sa where sa.currency_code=v_currency_code and sa.annual_fee_amount is not null and sa.annual_fee_on_month is not null and sa.annual_fee_on_day is not null;
-
-    declare cursor3 cursor for
-      select sat.id, sat.amount from m_savings_account_transaction sat
-      where sat.savings_account_id=v_account_id and sat.transaction_type_enum=5;
-
-    declare continue handler for not found
-      set no_more_rows := true;
-
-    open cursor1;
-    LOOP1: loop
-    fetch cursor1 into v_currency_code, v_annual_fee_amount_charge_def;
-
-    if no_more_rows then
-        close cursor1;
-        leave LOOP1;
-    end if;
-
-    -- set annual fee name
-    set t_annual_fee_name = CONCAT('Annual fee - ',v_currency_code);
-
-    -- get charge id if already exists
-    set t_charge_id = (select id from m_charge where name = t_annual_fee_name);
-
-    if t_charge_id is null then
-
-        -- add annual fee to charges
-        INSERT INTO `m_charge` (`name`, `currency_code`, `charge_applies_to_enum`, `charge_time_enum`, `charge_calculation_enum`, `charge_payment_mode_enum`, `amount`, `is_penalty`, `is_active`, `is_deleted`) VALUES (t_annual_fee_name, v_currency_code, 2, 6, 1, 0, v_annual_fee_amount_charge_def, 0, 1, 0);
-
-        -- get inserted charge id
-        set t_charge_id = last_insert_id();
-
-    end if;
-
-    open cursor2;
-        LOOP2: loop
-        fetch cursor2 into v_account_id, v_annual_fee_amount, v_annual_fee_on_month, v_annual_fee_on_day, v_annual_fee_next_due_date;
-
-        if no_more_rows then
-        set no_more_rows := false;
-        close cursor2;
-        leave LOOP2;
-            end if;
-
-            if not exists (select id from m_savings_account_charge sac where
-        sac.savings_account_id=v_account_id and sac.charge_id=t_charge_id and sac.charge_time_enum=6) then
-
-                -- attach annual charge to savings
-                INSERT INTO `m_savings_account_charge` (`savings_account_id`, `charge_id`, `is_penalty`, `charge_time_enum`, `charge_due_date`, `fee_on_month`, `fee_on_day`, `charge_calculation_enum`, `calculation_percentage`, `calculation_on_amount`, `amount`, `amount_paid_derived`, `amount_waived_derived`, `amount_writtenoff_derived`, `amount_outstanding_derived`, `is_paid_derived`, `waived`, `is_active`) VALUES (v_account_id, t_charge_id, 0, 6, v_annual_fee_next_due_date, v_annual_fee [...]
-
-                -- set savings account charge id
-                set t_savings_charge_id = last_insert_id();
-
-            else
-
-            set t_savings_charge_id = (select id from m_savings_account_charge sac where sac.savings_account_id=v_account_id and sac.charge_id=t_charge_id and sac.charge_time_enum=6);
-
-            end if;
-
-            open cursor3;
-            LOOP3: loop
-        fetch cursor3 into v_savings_transaction_id, v_transaction_amount;
-
-            if no_more_rows then
-            set no_more_rows := false;
-            close cursor3;
-            leave LOOP3;
-                end if;
-
-                if not exists (select id from m_savings_account_charge_paid_by sacp where
-        sacp.savings_account_transaction_id=v_savings_transaction_id and sacp.savings_account_charge_id=t_savings_charge_id) then
-
-                    -- insert a record into savings account charge paid by
-                    INSERT INTO `m_savings_account_charge_paid_by` (`savings_account_transaction_id`, `savings_account_charge_id`, `amount`) VALUES(v_savings_transaction_id, t_savings_charge_id, v_transaction_amount);
-
-                end if;
-
-            end loop LOOP3;
-        end loop LOOP2;
-    end loop LOOP1;
-end //
-
-delimiter ;
-
-call migrate_withdrwal_fees();
-call migrate_annual_fees();
-
-drop procedure if exists migrate_annual_fees;
-drop procedure if exists migrate_withdrwal_fees;
-
-
-ALTER TABLE `m_savings_account`
-    DROP COLUMN `annual_fee_amount`,
-    DROP COLUMN `annual_fee_on_month`,
-    DROP COLUMN `annual_fee_on_day`,
-    DROP COLUMN `annual_fee_next_due_date`,
-    DROP COLUMN `withdrawal_fee_amount`,
-    DROP COLUMN `withdrawal_fee_type_enum`;
-
-ALTER TABLE `m_savings_product`
-    DROP COLUMN `annual_fee_amount`,
-    DROP COLUMN `annual_fee_on_month`,
-    DROP COLUMN `annual_fee_on_day`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_8__track_overpayments_seperately_in_loan_transactions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118_8__track_overpayments_seperately_in_loan_transactions.sql
deleted file mode 100644
index c0a7f82..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118_8__track_overpayments_seperately_in_loan_transactions.sql
+++ /dev/null
@@ -1,35 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/***Set defaults for income from Penalties for existing Saving Products**/
-ALTER TABLE `m_loan_transaction`
-    ADD COLUMN `overpayment_portion_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `penalty_charges_portion_derived`;
-
-/**Add dummy liability account if organization already has a loan product with accounting enabled**/
-INSERT INTO `acc_gl_account` (`name`, `hierarchy`, `gl_code`,`account_usage`, `classification_enum`,`description`)
-select 'Loan Overpayments (Temp)', '.', '22000-Temp', 1, 2,'Temporary account to track Loan overpayments Liabilities'
-FROM m_product_loan WHERE accounting_type != 1
-limit 1;
-
-
-/**Map a liability account for every loan which has accounting enabled**/
-INSERT INTO `acc_product_mapping` (`gl_account_id`,`product_id`,`product_type`,`financial_account_type`)
-select (select max(id) from acc_gl_account where classification_enum=2 and account_usage=1 LIMIT 1), mapping.product_id, mapping.product_type, 11
-from acc_product_mapping mapping
-where mapping.financial_account_type = 2 and mapping.product_type=1;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V118__savings_charge.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V118__savings_charge.sql
deleted file mode 100644
index 0715279..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V118__savings_charge.sql
+++ /dev/null
@@ -1,83 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_savings_account_charge` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `savings_account_id` BIGINT NOT NULL,
-    `charge_id` BIGINT NOT NULL,
-    `is_penalty` tinyint NOT NULL DEFAULT '0',
-    `charge_time_enum` SMALLINT NOT NULL,
-    `due_for_collection_as_of_date` DATE NULL DEFAULT NULL,
-    `charge_calculation_enum` SMALLINT NOT NULL,
-    `calculation_percentage` DECIMAL(19,6) NULL DEFAULT NULL,
-    `calculation_on_amount` DECIMAL(19,6) NULL DEFAULT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    `amount_paid_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `amount_waived_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `amount_writtenoff_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `amount_outstanding_derived` DECIMAL(19,6) NOT NULL DEFAULT '0.000000',
-    `is_paid_derived` tinyint NOT NULL DEFAULT '0',
-    `waived` tinyint NOT NULL DEFAULT '0',
-    PRIMARY KEY (`id`),
-    INDEX `charge_id` (`charge_id`),
-    INDEX `m_savings_account_charge_ibfk_2` (`savings_account_id`),
-    CONSTRAINT `m_savings_account_charge_ibfk_1` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
-    CONSTRAINT `m_savings_account_charge_ibfk_2` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
-)
-ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
-CREATE TABLE `m_savings_product_charge` (
-    `savings_product_id` BIGINT NOT NULL,
-    `charge_id` BIGINT NOT NULL,
-    PRIMARY KEY (`savings_product_id`, `charge_id`),
-    INDEX `charge_id` (`charge_id`),
-    CONSTRAINT `m_savings_product_charge_ibfk_1` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
-    CONSTRAINT `m_savings_product_charge_ibfk_2` FOREIGN KEY (`savings_product_id`) REFERENCES `m_savings_product` (`id`)
-)
-ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_SAVINGSACCOUNTCHARGE', 'SAVINGSACCOUNTCHARGE', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_SAVINGSACCOUNTCHARGE_CHECKER', 'SAVINGSACCOUNTCHARGE', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_SAVINGSACCOUNTCHARGE', 'SAVINGSACCOUNTCHARGE', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_SAVINGSACCOUNTCHARGE_CHECKER', 'SAVINGSACCOUNTCHARGE', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_SAVINGSACCOUNTCHARGE', 'SAVINGSACCOUNTCHARGE', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_SAVINGSACCOUNTCHARGE_CHECKER', 'SAVINGSACCOUNTCHARGE', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'WAIVE_SAVINGSACCOUNTCHARGE', 'SAVINGSACCOUNTCHARGE', 'WAIVE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'WAIVE_SAVINGSACCOUNTCHARGE_CHECKER', 'SAVINGSACCOUNTCHARGE', 'WAIVE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'PAY_SAVINGSACCOUNTCHARGE', 'SAVINGSACCOUNTCHARGE', 'PAY', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'PAY_SAVINGSACCOUNTCHARGE_CHECKER', 'SAVINGSACCOUNTCHARGE', 'PAY', 0);
-
-
-
-CREATE TABLE `m_savings_account_charge_paid_by` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `savings_account_transaction_id` BIGINT NOT NULL,
-    `savings_account_charge_id` BIGINT NOT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK__m_savings_account_transaction` (`savings_account_transaction_id`),
-    INDEX `FK__m_savings_account_charge` (`savings_account_charge_id`),
-    CONSTRAINT `FK__m_savings_account_charge` FOREIGN KEY (`savings_account_charge_id`) REFERENCES `m_savings_account_charge` (`id`),
-    CONSTRAINT `FK__m_savings_account_transaction` FOREIGN KEY (`savings_account_transaction_id`) REFERENCES `m_savings_account_transaction` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V119__add_template_table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V119__add_template_table.sql
deleted file mode 100644
index f22dc5e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V119__add_template_table.sql
+++ /dev/null
@@ -1,53 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-DROP TABLE IF EXISTS `m_template`;
-CREATE TABLE `m_template` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
-  `text` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
-  `entity` INT DEFAULT NULL,
-  `type` INT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `unq_name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-DROP TABLE IF EXISTS `m_templatemappers`;
-CREATE TABLE `m_templatemappers` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `mapperkey` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  `mapperorder` INT DEFAULT NULL,
-  `mappervalue` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-DROP TABLE IF EXISTS `m_template_m_templatemappers`;
-CREATE TABLE `m_template_m_templatemappers` (
-  `m_template_id` BIGINT NOT NULL,
-  `mappers_id` BIGINT NOT NULL,
-  UNIQUE KEY `mappers_id` (`mappers_id`),
-  KEY (`mappers_id`),
-  KEY (`m_template_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organistion', 'DELETE_TEMPLATE', 'TEMPLATE', 'DELETE', 0),
-       ('organistion', 'CREATE_TEMPLATE', 'TEMPLATE', 'CREATE', 0),
-       ('organistion', 'UPDATE_TEMPLATE', 'TEMPLATE', 'UPDATE', 0),
-       ('organistion', 'READ_TEMPLATE', 'TEMPLATE', 'READ', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V11__add-payment-details.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V11__add-payment-details.sql
deleted file mode 100644
index 46026d1..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V11__add-payment-details.sql
+++ /dev/null
@@ -1,43 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/*
-New table for storing transaction details (for both loan and savings)
-*/
-
-CREATE TABLE `m_payment_detail` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `payment_type_enum` SMALLINT NOT NULL,
-    `account_number` VARCHAR(100) NULL DEFAULT NULL,
-    `check_number` VARCHAR(100) NULL DEFAULT NULL,
-    `receipt_number` VARCHAR(100) NULL DEFAULT NULL,
-    `bank_number` VARCHAR(100) NULL DEFAULT NULL,
-    `routing_code` VARCHAR(100) NULL DEFAULT NULL,
-    PRIMARY KEY (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-/*
-Update loan transaction to add a link to transaction detail table
-*/
-
-ALTER TABLE `m_loan_transaction`
-    ADD COLUMN `payment_detail_id` BIGINT NULL AFTER `loan_id`,
-    ADD CONSTRAINT `FK_m_loan_transaction_m_payment_detail` FOREIGN KEY (`payment_detail_id`) REFERENCES `m_payment_detail` (`id`);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V120__accounting_running_balance.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V120__accounting_running_balance.sql
deleted file mode 100644
index 3bee4d7..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V120__accounting_running_balance.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `acc_gl_journal_entry`
-    ADD COLUMN `is_running_balance_caculated` TINYINT NOT NULL DEFAULT '0' AFTER `lastmodified_date`,
-    ADD COLUMN `office_running_balance` DECIMAL(19,6) NOT NULL DEFAULT '0.000000' AFTER `is_running_balance_caculated`;
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Update Accounting Running Balances', 'Update Accounting Running Balances', '0 1 0 1/1 * ? *', now(), 5, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V121__accounting_running_balance_for_organization.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V121__accounting_running_balance_for_organization.sql
deleted file mode 100644
index 51e9551..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V121__accounting_running_balance_for_organization.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `acc_gl_journal_entry`
-    ADD COLUMN `organization_running_balance` DECIMAL(19,6) NOT NULL DEFAULT '0.000000' AFTER `office_running_balance`;
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'UPDATERUNNINGBALANCE_JOURNALENTRY', 'JOURNALENTRY', 'UPDATERUNNINGBALANCE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V122__recurring_fee_support_for_savings.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V122__recurring_fee_support_for_savings.sql
deleted file mode 100644
index 9211047..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V122__recurring_fee_support_for_savings.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_charge`
-    ADD COLUMN `fee_on_day` SMALLINT NULL AFTER `amount`,
-    ADD COLUMN `fee_interval` SMALLINT NULL AFTER `fee_on_day`,
-    ADD COLUMN `fee_on_month` SMALLINT NULL AFTER `fee_interval`;
-
-
-ALTER TABLE `m_savings_account_charge`
-    ADD COLUMN `fee_interval` SMALLINT NULL DEFAULT NULL AFTER `fee_on_day`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V123__remove_payment_mode_for_savings.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V123__remove_payment_mode_for_savings.sql
deleted file mode 100644
index 8e61ef5..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V123__remove_payment_mode_for_savings.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_charge`
-    CHANGE COLUMN `charge_payment_mode_enum` `charge_payment_mode_enum` SMALLINT NULL DEFAULT NULL AFTER `charge_calculation_enum`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V124__added_min_max_cap_for_charges.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V124__added_min_max_cap_for_charges.sql
deleted file mode 100755
index 9daae3f..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V124__added_min_max_cap_for_charges.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_charge`
-ADD COLUMN `min_cap` DECIMAL(19,6) NULL AFTER `is_deleted`,
-ADD COLUMN `max_cap` DECIMAL(19,6) NULL AFTER `min_cap`;
-
-ALTER TABLE `m_loan_charge`
-ADD COLUMN `min_cap` DECIMAL(19,6) NULL AFTER `waived`,
-ADD COLUMN `max_cap` DECIMAL(19,6) NULL AFTER `min_cap`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V125__added_column_for_actual_fee_amount_or_percentage.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V125__added_column_for_actual_fee_amount_or_percentage.sql
deleted file mode 100644
index 3e06ca5..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V125__added_column_for_actual_fee_amount_or_percentage.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_charge`
-    ADD COLUMN `charge_amount_or_percentage` DECIMAL(19,6) NULL DEFAULT NULL AFTER `calculation_on_amount`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V126__initial_database_structure_for_sms_outbound.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V126__initial_database_structure_for_sms_outbound.sql
deleted file mode 100644
index b25dba1..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V126__initial_database_structure_for_sms_outbound.sql
+++ /dev/null
@@ -1,55 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-DROP TABLE IF EXISTS `sms_messages_outbound`;
-CREATE TABLE `sms_messages_outbound` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `group_id` BIGINT DEFAULT NULL,
-  `client_id` BIGINT DEFAULT NULL,
-  `staff_id` BIGINT DEFAULT NULL,
-  `status_enum` INT NOT NULL DEFAULT '100',
-  `mobile_no` varchar(50) NOT NULL,
-  `message` varchar(1000) NOT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKGROUP000000001` (`group_id`),
-  KEY `FKCLIENT00000001` (`client_id`),
-  CONSTRAINT `FKGROUP000000001` FOREIGN KEY (`group_id`) REFERENCES `m_group` (`id`),
-  CONSTRAINT `FKCLIENT00000001` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
-  CONSTRAINT `FKSTAFF000000001` FOREIGN KEY (`staff_id`) REFERENCES `m_staff` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- Permissions for CRUD on SMS outbound message tracking
-DELETE FROM `m_permission` WHERE `entity_name`='SMS';
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organisation', 'READ_SMS', 'SMS', 'READ', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organisation', 'CREATE_SMS', 'SMS', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organisation', 'CREATE_SMS_CHECKER', 'SMS', 'CREATE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organisation', 'UPDATE_SMS', 'SMS', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organisation', 'UPDATE_SMS_CHECKER', 'SMS', 'UPDATE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organisation', 'DELETE_SMS', 'SMS', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('organisation', 'DELETE_SMS_CHECKER', 'SMS', 'DELETE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V127__mobile_no_fields.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V127__mobile_no_fields.sql
deleted file mode 100644
index 9c8a67d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V127__mobile_no_fields.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_client`
-ADD COLUMN `mobile_no` VARCHAR(50) NULL DEFAULT NULL AFTER `display_name`,
-ADD UNIQUE INDEX `mobile_no_UNIQUE` (`mobile_no` ASC);
-
-
-ALTER TABLE `m_staff`
-ADD COLUMN `mobile_no` VARCHAR(50) NULL DEFAULT NULL AFTER `display_name`,
-ADD UNIQUE INDEX `mobile_no_UNIQUE` (`mobile_no` ASC);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V128__added_loan_installment_charge.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V128__added_loan_installment_charge.sql
deleted file mode 100644
index cb04ff1..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V128__added_loan_installment_charge.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_loan_installment_charge` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_charge_id` BIGINT NOT NULL,
-    `loan_schedule_id` BIGINT NOT NULL,
-    `due_date` DATE NULL DEFAULT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    `amount_paid_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `amount_waived_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `amount_writtenoff_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `amount_outstanding_derived` DECIMAL(19,6) NOT NULL DEFAULT '0.000000',
-    `is_paid_derived` tinyint NOT NULL DEFAULT '0',
-    `waived` tinyint NOT NULL DEFAULT '0',
-    `amount_through_charge_payment` DECIMAL(19,6) NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_loan_charge_id_charge_schedule` FOREIGN KEY (`loan_charge_id`) REFERENCES `m_loan_charge` (`id`),
-    CONSTRAINT `FK_loan_schedule_id_charge_schedule` FOREIGN KEY (`loan_schedule_id`) REFERENCES `m_loan_repayment_schedule` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V129__client_and_group_timeline.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V129__client_and_group_timeline.sql
deleted file mode 100644
index a349151..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V129__client_and_group_timeline.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE  `m_client` ADD  `submittedon_date` DATE NULL DEFAULT NULL ,
-ADD  `submittedon_userid` BIGINT NULL DEFAULT NULL ,
-ADD  `activatedon_userid` BIGINT NULL DEFAULT NULL ,
-ADD  `closedon_userid` BIGINT NULL DEFAULT NULL ;
-
-ALTER TABLE  `m_group` ADD  `activatedon_userid` BIGINT NULL ,
-ADD  `submittedon_date` DATE NULL ,
-ADD  `submittedon_userid` BIGINT NULL ,
-ADD  `closedon_userid` BIGINT NULL ;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V12__add_external_id_to_couple_of_tables.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V12__add_external_id_to_couple_of_tables.sql
deleted file mode 100644
index a64ee39..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V12__add_external_id_to_couple_of_tables.sql
+++ /dev/null
@@ -1,45 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-ALTER TABLE m_group
-    ADD UNIQUE INDEX `external_id_UNIQUE` (`external_id` ASC) ;
-
-ALTER TABLE m_product_loan
-    ADD COLUMN `external_id` VARCHAR(100) NULL  AFTER `loan_transaction_strategy_id`  ,
-    ADD UNIQUE INDEX `external_id_UNIQUE` (`external_id` ASC) ;
-
-ALTER TABLE m_staff
-    ADD COLUMN `external_id` VARCHAR(100) NULL  AFTER `display_name`  ,
-    ADD UNIQUE INDEX `external_id_UNIQUE` (`external_id` ASC) ;
-
-
-/* status_id values for client and group
-0 - Invalid
-100 - Pending
-300 - Active
-600 - Closed( or Exited)
-*/
-
-ALTER TABLE m_client
-    ADD COLUMN `status_id` INT NOT NULL  DEFAULT 300 AFTER `is_deleted` ;
-
-
-ALTER TABLE m_group
-    ADD COLUMN `status_id` INT NOT NULL  DEFAULT 300 AFTER `is_deleted` ;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V130__calendar-history-table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V130__calendar-history-table.sql
deleted file mode 100644
index f8a8016..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V130__calendar-history-table.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_calendar_history` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `calendar_id` BIGINT NOT NULL,
-    `title` VARCHAR(50) NOT NULL,
-    `description` VARCHAR(100) NULL DEFAULT NULL,
-    `location` VARCHAR(50) NULL DEFAULT NULL,
-    `start_date` DATE NOT NULL,
-    `end_date` DATE NULL DEFAULT NULL,
-    `duration` SMALLINT NULL DEFAULT NULL,
-    `calendar_type_enum` SMALLINT NOT NULL,
-    `repeating` tinyint NOT NULL DEFAULT '0',
-    `recurrence` VARCHAR(100) NULL DEFAULT NULL,
-    `remind_by_enum` SMALLINT NULL DEFAULT NULL,
-    `first_reminder` SMALLint NULL DEFAULT NULL,
-    `second_reminder` SMALLint NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_m_calendar_m_calendar_history` (`calendar_id`),
-    CONSTRAINT `FK_m_calendar_m_calendar_history` FOREIGN KEY (`calendar_id`) REFERENCES `m_calendar` (`id`)
-);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V131__holiday-status-column-and-permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V131__holiday-status-column-and-permissions.sql
deleted file mode 100644
index bad868a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V131__holiday-status-column-and-permissions.sql
+++ /dev/null
@@ -1,35 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_holiday`
-    ADD COLUMN `status_enum` INT NOT NULL DEFAULT '100' AFTER `repayments_rescheduled_to`;
-
-ALTER TABLE `m_holiday`
-    DROP INDEX `holiday_name`,
-    ADD UNIQUE INDEX `holiday_name` (`name`, `from_date`);
-
-UPDATE `m_holiday` set `status_enum`=300;
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'CREATE_HOLIDAY_CHECKER', 'HOLIDAY', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'ACTIVATE_HOLIDAY', 'HOLIDAY', 'ACTIVATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'ACTIVATE_HOLIDAY_CHECKER', 'HOLIDAY', 'ACTIVATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'UPDATE_HOLIDAY', 'HOLIDAY', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'UPDATE_HOLIDAY_CHECKER', 'HOLIDAY', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'DELETE_HOLIDAY', 'HOLIDAY', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'DELETE_HOLIDAY_CHECKER', 'HOLIDAY', 'DELETE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V132__borrower_cycle_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V132__borrower_cycle_changes.sql
deleted file mode 100644
index 9953d26..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V132__borrower_cycle_changes.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_product_loan_variations_borrower_cycle` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_product_id` BIGINT NOT NULL DEFAULT '0',
-    `borrower_cycle_number` INT NOT NULL DEFAULT '0',
-    `value_condition` INT NOT NULL DEFAULT '0',
-    `param_type` INT NOT NULL DEFAULT '0',
-    `default_value` DECIMAL(19,6) NOT NULL DEFAULT '0.000000',
-    `max_value` DECIMAL(19,6) NULL DEFAULT NULL,
-    `min_value` DECIMAL(19,6) NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `borrower_cycle_loan_product_FK` (`loan_product_id`),
-    CONSTRAINT `borrower_cycle_loan_product_FK` FOREIGN KEY (`loan_product_id`) REFERENCES `m_product_loan` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `use_borrower_cycle` tinyint NOT NULL DEFAULT '0' AFTER `include_in_borrower_cycle`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V133__adding_payment_detail_with_journal_entry.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V133__adding_payment_detail_with_journal_entry.sql
deleted file mode 100644
index 4942f23..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V133__adding_payment_detail_with_journal_entry.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `acc_gl_journal_entry`
-    ADD COLUMN `loan_transaction_id` BIGINT NULL AFTER `transaction_id`,
-    ADD COLUMN `savings_transaction_id` BIGINT NULL AFTER `loan_transaction_id`,
-    ADD CONSTRAINT `FK_acc_gl_journal_entry_m_loan_transaction` FOREIGN KEY (`loan_transaction_id`) REFERENCES `m_loan_transaction` (`id`),
-    ADD CONSTRAINT `FK_acc_gl_journal_entry_m_savings_account_transaction` FOREIGN KEY (`savings_transaction_id`) REFERENCES `m_savings_account_transaction` (`id`);
-
-UPDATE acc_gl_journal_entry je SET je.savings_transaction_id=je.transaction_id,je.transaction_id=Concat('S',je.transaction_id) WHERE  je.entity_type_enum=2;
-
-UPDATE acc_gl_journal_entry je SET je.loan_transaction_id=je.transaction_id,je.transaction_id=Concat('L',je.transaction_id) WHERE  je.entity_type_enum=1;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V134_1__submitted_date_updation_for_clients.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V134_1__submitted_date_updation_for_clients.sql
deleted file mode 100755
index 3fadd00..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V134_1__submitted_date_updation_for_clients.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-UPDATE m_client mc SET mc.submittedon_date=mc.activation_date where mc.submittedon_date is NULL;
-UPDATE m_client mc SET mc.submittedon_date=now() where mc.submittedon_date is NULL;
-
-UPDATE m_group mg SET mg.submittedon_date=mg.activation_date where mg.submittedon_date is NULL;
-UPDATE m_group mg SET mg.submittedon_date=now() where mg.submittedon_date is NULL;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V134_2__permissions_spelling_correction.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V134_2__permissions_spelling_correction.sql
deleted file mode 100644
index d3794f4..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V134_2__permissions_spelling_correction.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-update m_permission set `grouping`="organisation" where `grouping` = "organistion";
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V134__added_column_value_on_c_configuration.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V134__added_column_value_on_c_configuration.sql
deleted file mode 100755
index 004b93d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V134__added_column_value_on_c_configuration.sql
+++ /dev/null
@@ -1,31 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `c_configuration`
-ADD COLUMN `value` INT NULL AFTER `name`;
-
-INSERT INTO `c_configuration` (
-`id` ,
-`name` ,
-`value` ,
-`enabled`
-)
-VALUES (
-NULL ,  'penalty-wait-period',  '2',  '1'
-);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V135__added_permission_for_undo_written_off.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V135__added_permission_for_undo_written_off.sql
deleted file mode 100755
index fe39aba..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V135__added_permission_for_undo_written_off.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('transaction_loan', 'UNDOWRITEOFF_LOAN', 'LOAN', 'UNDOWRITEOFF', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V136_1__update_script_strechy_parameter.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V136_1__update_script_strechy_parameter.sql
deleted file mode 100644
index 2e0be8d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V136_1__update_script_strechy_parameter.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-UPDATE stretchy_parameter SET `parameter_sql`='select p.id, p.`name`\r\nfrom m_product_loan p\r\nwhere (p.currency_code = \'$\{currencyId}\' or \'-1\'= \'$\{currencyId}\')\r\norder by 2' WHERE parameter_name='loanProductIdSelectAll';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V137__added_is_active_column_in_m_staff.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V137__added_is_active_column_in_m_staff.sql
deleted file mode 100644
index 7dbfe8d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V137__added_is_active_column_in_m_staff.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_staff` ADD COLUMN `is_active` tinyint DEFAULT '0' AFTER `organisational_role_parent_staff_id`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V138__add_short_name_for_m_product_loan_and_m_savings_product.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V138__add_short_name_for_m_product_loan_and_m_savings_product.sql
deleted file mode 100644
index 4b1d0e5..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V138__add_short_name_for_m_product_loan_and_m_savings_product.sql
+++ /dev/null
@@ -1,37 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `short_name` VARCHAR(4) NULL DEFAULT NULL AFTER `id`;
-update m_product_loan set short_name=concat(LEFT(name,2), RIGHT(id,2)) where short_name is null;
-ALTER TABLE `m_product_loan`
-    ALTER `short_name` DROP DEFAULT;
-ALTER TABLE `m_product_loan`
-    CHANGE COLUMN `short_name` `short_name` VARCHAR(4) NOT NULL AFTER `id`;
-ALTER TABLE `m_product_loan`
-    ADD UNIQUE INDEX `unq_short_name` (`short_name`);
-
-ALTER TABLE `m_savings_product`
-    ADD COLUMN `short_name` VARCHAR(4) NULL DEFAULT NULL AFTER `name`;
-update m_savings_product set short_name=concat(LEFT(name,2), RIGHT(id,2)) where short_name is null;
-ALTER TABLE `m_savings_product`
-    ALTER `short_name` DROP DEFAULT;
-ALTER TABLE `m_savings_product`
-    CHANGE COLUMN `short_name` `short_name` VARCHAR(4) NOT NULL AFTER `name`,
-    ADD UNIQUE INDEX `sp_unq_short_name` (`short_name`);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V139__default_value_for_is_active_updated_to_true_in_m_staff.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V139__default_value_for_is_active_updated_to_true_in_m_staff.sql
deleted file mode 100644
index e215474..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V139__default_value_for_is_active_updated_to_true_in_m_staff.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_staff`
-    CHANGE COLUMN `is_active` `is_active` tinyint NOT NULL DEFAULT '1' AFTER `organisational_role_parent_staff_id`;
-UPDATE `m_staff` SET `is_active`=1;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V13__add_group_and_client_pending_configuration.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V13__add_group_and_client_pending_configuration.sql
deleted file mode 100644
index 828cecf..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V13__add_group_and_client_pending_configuration.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-
-/*
-default client and group status is active 300.  If you want to be able to have pending as the initial client stat
-*/
-INSERT INTO c_configuration (`name`, `enabled`) VALUES ('allow-pending-client-status', '0');
-INSERT INTO c_configuration (`name`, `enabled`) VALUES ('allow-pending-group-status', '0');
-
-
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
- VALUES ('status_id', '0', 'Invalid', 'Invalid');
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
- VALUES ('status_id', '100', 'Pending', 'Pending');
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
- VALUES ('status_id', '300', 'Active', 'Active');
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
- VALUES ('status_id', '600', 'Closed', 'Closed');
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
- VALUES ('loan_status_id', '0', 'Invalid', 'Invalid');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V140_1__added_payment_detail_id_in_ac_gl_journal_entry.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V140_1__added_payment_detail_id_in_ac_gl_journal_entry.sql
deleted file mode 100644
index ce17e73..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V140_1__added_payment_detail_id_in_ac_gl_journal_entry.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `acc_gl_journal_entry`
-    ADD COLUMN `payment_details_id` BIGINT NULL AFTER `organization_running_balance`,
-    ADD CONSTRAINT `FK_acc_gl_journal_entry_m_payment_detail` FOREIGN KEY (`payment_details_id`) REFERENCES `m_payment_detail` (`id`);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V140__added_loan_charge_status.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V140__added_loan_charge_status.sql
deleted file mode 100644
index 7e0f089..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V140__added_loan_charge_status.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_charge`
-    ADD COLUMN `is_active` tinyint NOT NULL DEFAULT '1' AFTER `max_cap`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V141__add_early_repayment_strategy.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V141__add_early_repayment_strategy.sql
deleted file mode 100644
index 6541b3e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V141__add_early_repayment_strategy.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `ref_loan_transaction_processing_strategy` ( `code`, `name`)
-VALUES
-  ( 'early-repayment-strategy', 'Early Repayment Strategy');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V142__read_savingsaccount_charge_permission.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V142__read_savingsaccount_charge_permission.sql
deleted file mode 100644
index 53dc2ac..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V142__read_savingsaccount_charge_permission.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'READ_SAVINGSACCOUNTCHARGE', 'SAVINGSACCOUNTCHARGE', 'READ', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V143__create_journalentry_checker_permission.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V143__create_journalentry_checker_permission.sql
deleted file mode 100644
index 6301d7d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V143__create_journalentry_checker_permission.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'CREATE_JOURNALENTRY_CHECKER', 'JOURNALENTRY', 'CREATE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V144__spelling_mistake_corrections.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V144__spelling_mistake_corrections.sql
deleted file mode 100644
index 09499b9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V144__spelling_mistake_corrections.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-RENAME TABLE `x_table_cloumn_code_mappings` TO `x_table_column_code_mappings`;
-
-ALTER TABLE `acc_gl_journal_entry`
-    CHANGE COLUMN `is_running_balance_caculated` `is_running_balance_calculated` TINYINT NOT NULL DEFAULT '0' AFTER `lastmodified_date`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V145__add_force_password_reset_in_c_configuration.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V145__add_force_password_reset_in_c_configuration.sql
deleted file mode 100644
index 02be5d8..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V145__add_force_password_reset_in_c_configuration.sql
+++ /dev/null
@@ -1,36 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`) VALUES (NULL, 'force-password-reset-days', '0', '0');
-
-ALTER TABLE  `m_appuser` ADD  `last_time_password_updated` DATE NOT NULL DEFAULT '1970-01-01',
-ADD INDEX (  `last_time_password_updated` ) ;
-
-UPDATE  `m_appuser` SET  `last_time_password_updated` =  NOW() WHERE  `m_appuser`.`last_time_password_updated` ='1970-01-01';
-
-CREATE TABLE IF NOT EXISTS `m_appuser_previous_password` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `user_id` BIGINT NOT NULL,
-  `password` varchar(255) NOT NULL,
-  `removal_date` date NOT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-
-ALTER TABLE m_appuser_previous_password
-ADD FOREIGN KEY (user_id) REFERENCES m_appuser(id);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V146__tranche_loans.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V146__tranche_loans.sql
deleted file mode 100644
index 00c4314..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V146__tranche_loans.sql
+++ /dev/null
@@ -1,57 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `multi_disburse_loan` tinyint NOT NULL DEFAULT '0' AFTER `close_date`,
-    ADD COLUMN `max_tranche_count` INT NULL DEFAULT NULL AFTER `multi_disburse_loan`,
-    ADD COLUMN `outstanding_loan_balance` DECIMAL(19,6) NULL DEFAULT NULL AFTER `max_tranche_count`;
-
-CREATE TABLE `m_loan_disbursement_detail` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_id` BIGINT NOT NULL,
-    `expected_disburse_date` DATETIME NOT NULL,
-    `disbursedon_date` DATETIME NULL,
-    `principal` DECIMAL(19,6) NOT NULL,
-    `approved_principal` DECIMAL(19,6) NOT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_loan_disbursement_detail_loan_id` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-ALTER TABLE `m_loan`
-    ADD COLUMN `fixed_emi_amount` DECIMAL(19,6) NULL AFTER `loan_product_counter`,
-    ADD COLUMN `approved_principal` DECIMAL(19,6) NOT NULL AFTER `principal_amount`,
-    ADD COLUMN `max_outstanding_loan_balance` DECIMAL(19,6) NULL DEFAULT NULL AFTER `fixed_emi_amount`;
-
-UPDATE m_loan ml  SET ml.approved_principal = ml.principal_amount;
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'UPDATE_DISBURSEMENTDETAIL', 'DISBURSEMENTDETAIL', 'UPDATE', 0);
-
-CREATE TABLE `m_loan_term_variations` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_id` BIGINT NOT NULL,
-    `term_type` SMALLINT NOT NULL,
-    `applicable_from` DATE NOT NULL,
-    `term_value` DECIMAL(19,6) NOT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_loan_id_m_loan_id` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V147__tranche_loans_column_name_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V147__tranche_loans_column_name_changes.sql
deleted file mode 100644
index 0e038f8..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V147__tranche_loans_column_name_changes.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    CHANGE COLUMN `multi_disburse_loan` `allow_multiple_disbursals` tinyint NOT NULL DEFAULT '0' AFTER `close_date`,
-    CHANGE COLUMN `max_tranche_count` `max_disbursals` INT NULL DEFAULT NULL AFTER `allow_multiple_disbursals`,
-    CHANGE COLUMN `outstanding_loan_balance` `max_outstanding_loan_balance` DECIMAL(19,6) NULL DEFAULT NULL AFTER `max_disbursals`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V148__overdraft_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V148__overdraft_changes.sql
deleted file mode 100644
index b00f3a6..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V148__overdraft_changes.sql
+++ /dev/null
@@ -1,33 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_product`
-    ADD COLUMN `allow_overdraft` tinyint NOT NULL DEFAULT '0' AFTER `withdrawal_fee_for_transfer`,
-    ADD COLUMN `overdraft_limit` DECIMAL(19,6) NULL DEFAULT NULL AFTER `allow_overdraft`;
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `allow_overdraft` tinyint NOT NULL DEFAULT '0' AFTER `withdrawal_fee_for_transfer`,
-    ADD COLUMN `overdraft_limit` DECIMAL(19,6) NULL DEFAULT NULL AFTER `allow_overdraft`;
-
-ALTER TABLE `m_savings_account_transaction`
-    ADD COLUMN `overdraft_amount_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `amount`;
-
-ALTER TABLE `m_client`
-    ADD COLUMN `default_savings_product` BIGINT NULL DEFAULT NULL AFTER `closedon_userid`,
-    ADD CONSTRAINT `FK_m_client_m_savings_product` FOREIGN KEY (`default_savings_product`) REFERENCES `m_savings_product` (`id`);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V149__add_created_date_savings_transaction.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V149__add_created_date_savings_transaction.sql
deleted file mode 100644
index cbd8b3f..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V149__add_created_date_savings_transaction.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account_transaction`
-    ADD COLUMN `created_date` DATETIME NOT NULL AFTER `cumulative_balance_derived`;
-
-update m_savings_account_transaction sat set sat.created_date=sat.transaction_date;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V14__rename_status_id_to_enum.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V14__rename_status_id_to_enum.sql
deleted file mode 100644
index ccbcef2..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V14__rename_status_id_to_enum.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-ALTER TABLE m_group CHANGE COLUMN `status_id` `status_enum` INT NOT NULL DEFAULT '300'  ;
-
-ALTER TABLE m_client CHANGE COLUMN `status_id` `status_enum` INT NOT NULL DEFAULT '300'  ;
-
-update r_enum_value
-set enum_name = 'status_enum'
-where enum_name = 'status_id';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V150__basic_savings_report.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V150__basic_savings_report.sql
deleted file mode 100644
index 9705cab..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V150__basic_savings_report.sql
+++ /dev/null
@@ -1,49 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('Savings Transactions', 'Pentaho', NULL, 'Savings', NULL, NULL, 0, 1);
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('Client Savings Summary', 'Pentaho', NULL, 'Savings', NULL, NULL, 0, 1);
-
-INSERT INTO `stretchy_parameter` (`parameter_name`, `parameter_variable`, `parameter_label`, `parameter_displayType`, `parameter_FormatType`, `parameter_default`, `special`, `selectOne`, `selectAll`, `parameter_sql`, `parent_id`) VALUES ( 'selectAccount', 'accountNo', 'Enter Account No', 'text', 'string', 'n/a', NULL, NULL, NULL, NULL, NULL);
-INSERT INTO `stretchy_parameter` (`parameter_name`, `parameter_variable`, `parameter_label`, `parameter_displayType`, `parameter_FormatType`, `parameter_default`, `special`, `selectOne`, `selectAll`, `parameter_sql`, `parent_id`) VALUES ('savingsProductIdSelectAll', 'savingsProductId', 'Product', 'select', 'number', '0', NULL, NULL, 'Y', 'select p.id, p.`name`\r\nfrom m_savings_product p\r\norder by 2', NULL);
-
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Savings Transactions'), (select id from stretchy_parameter where parameter_name='startDateSelect'), 'fromDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Savings Transactions'), (select id from stretchy_parameter where parameter_name='endDateSelect'), 'toDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Savings Transactions'), (select id from stretchy_parameter where parameter_name='selectAccount'), 'accountNo');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Savings Summary'), (select id from stretchy_parameter where parameter_name='startDateSelect'), 'fromDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Savings Summary'), (select id from stretchy_parameter where parameter_name='endDateSelect'), 'toDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Savings Summary'), (select id from stretchy_parameter where parameter_name='OfficeIdSelectOne'), 'selectOffice');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Savings Summary'), (select id from stretchy_parameter where parameter_name='savingsProductIdSelectAll'), 'selectProduct');
-
-ALTER TABLE `r_enum_value`
-    ADD COLUMN `enum_type` tinyint NOT NULL AFTER `enum_value`;
-
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 1, 'deposit', 'deposit', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 2, 'withdrawal', 'withdrawal', 1);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 3, 'Interest Posting', 'Interest Posting', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 4, 'Withdrawal Fee', 'Withdrawal Fee', 1);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 5, 'Annual Fee', 'Annual Fee', 1);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 6, 'Waive Charge', 'Waive Charge', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 7, 'Pay Charge', 'Pay Charge', 1);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 12, 'Initiate Transfer', 'Initiate Transfer', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 13, 'Approve Transfer', 'Approve Transfer', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 14, 'Withdraw Transfer', 'Withdraw Transfer', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 15, 'Reject Transfer', 'Reject Transfer', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 16, 'Written-Off', 'Written-Off', 0);
-INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`, `enum_type`) VALUES ('savings_transaction_type_enum', 17, 'Overdraft Interest', 'Overdraft Interest', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V151__add_default_savings_account_to_client.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V151__add_default_savings_account_to_client.sql
deleted file mode 100644
index 7d1203e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V151__add_default_savings_account_to_client.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_client`
-    ADD COLUMN `default_savings_account` BIGINT NULL DEFAULT NULL AFTER `default_savings_product`,
-    ADD CONSTRAINT `FK_m_client_m_savings_account` FOREIGN KEY (`default_savings_account`) REFERENCES `m_savings_account` (`id`);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'UPDATESAVINGSACCOUNT_CLIENT', 'CLIENT', 'UPDATESAVINGSACCOUNT', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V152__added_grace_for_over_due.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V152__added_grace_for_over_due.sql
deleted file mode 100644
index ad33fce..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V152__added_grace_for_over_due.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `grace_on_arrears_ageing` SMALLINT NULL DEFAULT NULL AFTER `max_outstanding_loan_balance`;
-
-ALTER TABLE `m_loan`
-    ADD COLUMN `grace_on_arrears_ageing` SMALLINT NULL DEFAULT NULL AFTER `max_outstanding_loan_balance`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V153__Insert_missed_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V153__Insert_missed_permissions.sql
deleted file mode 100644
index b52c945..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V153__Insert_missed_permissions.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'READ_ACCOUNTINGRULE', 'ACCOUNTINGRULE', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'READ_JOURNALENTRY', 'JOURNALENTRY', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'READ_GLACCOUNT', 'GLACCOUNT', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'READ_GLCLOSURE', 'GLCLOSURE', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'READ_HOLIDAY', 'HOLIDAY', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('jobs', 'READ_SCHEDULER', 'SCHEDULER', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'READ_PRODUCTMIX', 'PRODUCTMIX', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'READ_MEETING', 'MEETING', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('jobs', 'EXECUTEJOB_SCHEDULER', 'SCHEDULER', 'EXECUTEJOB', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V154__aging_details.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V154__aging_details.sql
deleted file mode 100644
index 22979ba..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V154__aging_details.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-UPDATE `stretchy_report` SET `report_sql`='\r\nSELECT \r\nconcat(repeat("..",   \r\n   ((LENGTH(ounder.`hierarchy`) - LENGTH(REPLACE(ounder.`hierarchy`, \'.\', \'\')) - 1))), ounder.`name`) as "Office/Branch",\r\nifnull(cur.display_symbol, ml.currency_code) as Currency,  \r\nmc.account_no as "Client Account No.",\r\n 	mc.display_name AS "Client Name",\r\n 	ml.account_no AS "Account Number",\r\n 	ml.principal_amount AS "Loan Amount",\r\n ml.principal_disbursed_derived AS "Original Princip [...]
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V155__stretchy_into_pentaho.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V155__stretchy_into_pentaho.sql
deleted file mode 100644
index 0b06ae8..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V155__stretchy_into_pentaho.sql
+++ /dev/null
@@ -1,735 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report)VALUES ("Active Loans - Details(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Active Loans - Summary(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Active Loans by Disbursal Period(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Active Loans in last installment Summary(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report)VALUES ("Active Loans in last installment(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Active Loans Passed Final Maturity Summary(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Active Loans Passed Final Maturity(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Aging Detail(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Aging Summary (Arrears in Months)(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Aging Summary (Arrears in Weeks)(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Client Listing(Pentaho)", 'Pentaho', 'Client', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Client Loans Listing(Pentaho)", 'Pentaho', 'Client', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Expected Payments By Date - Basic(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Funds Disbursed Between Dates Summary by Office(Pentaho)", 'Pentaho', 'Fund', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Funds Disbursed Between Dates Summary(Pentaho)", 'Pentaho', 'Fund', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Loans Awaiting Disbursal Summary by Month(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Loans Awaiting Disbursal Summary(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Loans Awaiting Disbursal(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Loans Pending Approval(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Obligation Met Loans Details(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Obligation Met Loans Summary(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Portfolio at Risk by Branch(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Portfolio at Risk(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Rescheduled Loans(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("TxnRunningBalances(Pentaho)", 'Pentaho', 'Transaction', '(NULL)', '(NULL)', 1, 1);
-INSERT INTO stretchy_report (report_name, report_type, report_category, report_sql, description, core_report, use_report) VALUES ("Written-Off Loans(Pentaho)", 'Pentaho', 'Loan', '(NULL)', '(NULL)', 1, 1);
-
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Details(Pentaho)'),(select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),'branch');
-
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Details(Pentaho)'),(select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'loanOfficer');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Details(Pentaho)'),(select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'currencyId');
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Details(Pentaho)'),(select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Details(Pentaho)'),(select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Details(Pentaho)'),(select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),'loanPurposeId');
-
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'loanOfficer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans - Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='parTypeSelect'),
- 'parType');
-
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'loanOfficer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans by Disbursal Period(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='parTypeSelect'),
- 'parType');
-
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans in last installment(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='parTypeSelect'),
- 'parType');
-
-  INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Active Loans Passed Final Maturity(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Aging Detail(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Aging Summary (Arrears in Months)(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Aging Summary (Arrears in Months)(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Aging Summary (Arrears in Weeks)(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Aging Summary (Arrears in Weeks)(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Client Listing(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'selectOffice');
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Client Loans Listing(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Client Loans Listing(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Client Loans Listing(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Client Loans Listing(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
-'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Client Loans Listing(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Client Loans Listing(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Expected Payments By Date - Basic(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Expected Payments By Date - Basic(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Expected Payments By Date - Basic(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Expected Payments By Date - Basic(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary by Office(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary by Office(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary by Office(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary by Office(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary by Office(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Funds Disbursed Between Dates Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary by Month(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary by Month(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary by Month(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary by Month(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary by Month(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary by Month(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-  INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-  INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-  INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Awaiting Disbursal(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Pending Approval(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Pending Approval(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Pending Approval(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Pending Approval(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Pending Approval(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Loans Pending Approval(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
-'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Details(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='obligDateTypeSelect'),
- 'obligDateType');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'Startdate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'Enddate');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Obligation Met Loans Summary(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='obligDateTypeSelect'),
- 'obligDateType');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk by Branch(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk by Branch(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk by Branch(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk by Branch(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk by Branch(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk by Branch(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk by Branch(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='parTypeSelect'),
- 'parType');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'loanOfficer');
-
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='fundIdSelectAll'),
- 'fundId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanPurposeIdSelectAll'),
- 'loanPurposeId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Portfolio at Risk(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='parTypeSelect'),
- 'parType');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Rescheduled Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Rescheduled Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
-  INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Rescheduled Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Rescheduled Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Rescheduled Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
-INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='TxnRunningBalances(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='TxnRunningBalances(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanOfficerIdSelectAll'),
- 'Loan Officer');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='TxnRunningBalances(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='TxnRunningBalances(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Written-Off Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
- 'Branch');
-  INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Written-Off Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='currencyIdSelectAll'),
- 'CurrencyId');
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Written-Off Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='loanProductIdSelectAll'),
- 'loanProductId');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Written-Off Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateSelect'),
- 'startDate');
-
- INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id From stretchy_report sr where sr.report_name='Written-Off Loans(Pentaho)'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateSelect'),
- 'endDate');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V156__added_loan_saving_txns_pentaho.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V156__added_loan_saving_txns_pentaho.sql
deleted file mode 100644
index 5ed366e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V156__added_loan_saving_txns_pentaho.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('Client Saving Transactions', 'Pentaho', NULL, 'Savings', NULL, NULL, 0, 0);
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Saving Transactions'), (select id from stretchy_parameter where parameter_name='startDateSelect'), 'startDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Saving Transactions'), (select id from stretchy_parameter where parameter_name='endDateSelect'), 'endDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Saving Transactions'), (select id from stretchy_parameter where parameter_name='selectAccount'), 'accountNo');
-
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('Client Loan Account Schedule', 'Pentaho', NULL, 'Loans', NULL, NULL, 0, 0);
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Loan Account Schedule'), (select id from stretchy_parameter where parameter_name='startDateSelect'), 'startDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Loan Account Schedule'), (select id from stretchy_parameter where parameter_name='endDateSelect'), 'endDate');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select id from stretchy_report where report_name = 'Client Loan Account Schedule'), (select id from stretchy_parameter where parameter_name='selectAccount'), 'accountNo');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V157__overdue_charge_improvements.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V157__overdue_charge_improvements.sql
deleted file mode 100644
index 8f65d96..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V157__overdue_charge_improvements.sql
+++ /dev/null
@@ -1,37 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_charge`
-    ADD COLUMN `fee_frequency` SMALLINT NULL DEFAULT NULL AFTER `max_cap`;
-
-CREATE TABLE `m_loan_overdue_installment_charge` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_charge_id` BIGINT NOT NULL,
-    `loan_schedule_id` BIGINT NOT NULL,
-    `frequency_number` INT NOT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_m_loan_overdue_installment_charge_m_loan_charge` FOREIGN KEY (`loan_charge_id`) REFERENCES `m_loan_charge` (`id`),
-    CONSTRAINT `FK_m_loan_overdue_installment_charge_m_loan_repayment_schedule` FOREIGN KEY (`loan_schedule_id`) REFERENCES `m_loan_repayment_schedule` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-INSERT INTO `c_configuration` (`name`, `value`, `enabled`) VALUES ('grace-on-penalty-posting', 0, 1);
-
-INSERT INTO m_loan_overdue_installment_charge (`loan_charge_id`, `loan_schedule_id`, `frequency_number`) SELECT mlc.id ,ls.id ,1  from m_loan_charge as mlc inner join m_charge mc on mc.id = mlc.charge_id inner join m_loan_repayment_schedule ls on ls.loan_id = mlc.loan_id and ls.duedate = mlc.due_for_collection_as_of_date where mc.charge_time_enum = 9 and mlc.is_active = 1;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V158__dashboard_and_navigation_queries.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V158__dashboard_and_navigation_queries.sql
deleted file mode 100644
index 31dbc68..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V158__dashboard_and_navigation_queries.sql
+++ /dev/null
@@ -1,36 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('GroupNamesByStaff', 'Table', '', '', 'Select gr.id as id, gr.display_name as name from m_group gr where gr.level_id=1 and gr.staff_id = ${staffId}', '', 0, 1);
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('ClientTrendsByDay', 'Table', '', 'Client', 'SELECT 	COUNT(cl.id) AS count, \n		cl.activation_date AS days\nFROM m_office of \n	LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n	AND (cl.activation_date BETWEEN DATE_SUB(CURD [...]
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('ClientTrendsByWeek', 'Table', '', 'Client', 'SELECT 	COUNT(cl.id) AS count, \n		WEEK(cl.activation_date) AS Weeks\nFROM m_office of \n	LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n	AND (cl.activation_date BETWEEN DATE_ [...]
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('ClientTrendsByMonth', 'Table', '', 'Client', 'SELECT 	COUNT(cl.id) AS count, \n		MONTHNAME(cl.activation_date) AS Months\nFROM m_office of \n	LEFT JOIN m_client cl on of.id = cl.office_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n	AND (cl.activation_date BETWEE [...]
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('LoanTrendsByDay', 'Table', '', 'Loan', 'SELECT 	COUNT(ln.id) AS lcount, \n		ln.disbursedon_date AS days\nFROM m_office of \n	LEFT JOIN m_client cl on of.id = cl.office_id\n	LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"%" ) \n	A [...]
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('LoanTrendsByWeek', 'Table', '', 'Loan', 'SELECT 	COUNT(ln.id) AS lcount, \n		WEEK(ln.disbursedon_date) AS Weeks\nFROM m_office of \n	LEFT JOIN m_client cl on of.id = cl.office_id\n	LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${officeId}),"% [...]
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('LoanTrendsByMonth', 'Table', '', 'Loan', 'SELECT 	COUNT(ln.id) AS lcount, \n		MONTHNAME(ln.disbursedon_date) AS Months\nFROM m_office of \n	LEFT JOIN m_client cl on of.id = cl.office_id\n	LEFT JOIN m_loan ln on cl.id = ln.client_id\nWHERE of.hierarchy like concat((select ino.hierarchy from m_office ino where ino.id = ${office [...]
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('Demand_Vs_Collection', 'Table', '', 'Loan', 'select amount.AmountDue-amount.AmountPaid as AmountDue, amount.AmountPaid as AmountPaid from\n(SELECT \n(IFNULL(SUM(ls.principal_amount),0) - IFNULL(SUM(ls.principal_writtenoff_derived),0)\n + IFNULL(SUM(ls.interest_amount),0) - IFNULL(SUM(ls.interest_writtenoff_derived),0) \n - IF [...]
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('Disbursal_Vs_Awaitingdisbursal', 'Table', '', 'Loan', 'select awaitinddisbursal.amount-disbursedAmount.amount as amountToBeDisburse, disbursedAmount.amount as disbursedAmount from \n(\nSELECT 	COUNT(ln.id) AS noOfLoans, \n			IFNULL(SUM(ln.principal_amount),0) AS amount\nFROM \nm_office of\nLEFT JOIN m_client cl ON cl.office_i [...]
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'ClientTrendsByDay'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'ClientTrendsByWeek'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'ClientTrendsByMonth'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'LoanTrendsByDay'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'LoanTrendsByWeek'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'LoanTrendsByMonth'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'Demand_Vs_Collection'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES ((select sr.id from stretchy_report sr where sr.report_name = 'Disbursal_Vs_Awaitingdisbursal'), (select sp.id from stretchy_parameter sp where sp.parameter_name = 'OfficeIdSelectOne'), '');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V159__add_transaction_id_column_m_portfolio_command_source.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V159__add_transaction_id_column_m_portfolio_command_source.sql
deleted file mode 100644
index bc6e68e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V159__add_transaction_id_column_m_portfolio_command_source.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_portfolio_command_source`
-    ADD COLUMN `transaction_id` VARCHAR(100) NULL DEFAULT NULL AFTER `product_id`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V15__center_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V15__center_permissions.sql
deleted file mode 100644
index 9327fa2..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V15__center_permissions.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'READ_CENTER', 'CENTER', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'CREATE_CENTER', 'CENTER', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'CREATE_CENTER_CHECKER', 'CENTER', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'UPDATE_CENTER', 'CENTER', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'UPDATE_CENTER_CHECKER', 'CENTER', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'DELETE_CENTER', 'CENTER', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'DELETE_CENTER_CHECKER', 'CENTER', 'DELETE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V160_2__Allow_nullValue_For_principal_on_lonProduct.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V160_2__Allow_nullValue_For_principal_on_lonProduct.sql
deleted file mode 100644
index cff0cf9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V160_2__Allow_nullValue_For_principal_on_lonProduct.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE  `m_product_loan` CHANGE  `principal_amount`  `principal_amount` DECIMAL( 19, 6 ) NULL ;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V160__standing_instruction_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V160__standing_instruction_changes.sql
deleted file mode 100644
index ff17380..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V160__standing_instruction_changes.sql
+++ /dev/null
@@ -1,144 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_account_transfer_details` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `from_office_id` BIGINT NOT NULL,
-    `to_office_id` BIGINT NOT NULL,
-    `from_client_id` BIGINT NULL DEFAULT NULL,
-    `to_client_id` BIGINT NULL DEFAULT NULL,
-    `from_savings_account_id` BIGINT NULL DEFAULT NULL,
-    `to_savings_account_id` BIGINT NULL DEFAULT NULL,
-    `from_loan_account_id` BIGINT NULL DEFAULT NULL,
-    `to_loan_account_id` BIGINT NULL DEFAULT NULL,
-    `transfer_type` SMALLINT NULL DEFAULT NULL,
-    `from_savings_transaction_id` BIGINT NULL DEFAULT NULL,
-    `from_loan_transaction_id` BIGINT NULL DEFAULT NULL,
-    `to_savings_transaction_id` BIGINT NULL DEFAULT NULL,
-    `to_loan_transaction_id` BIGINT NULL DEFAULT NULL,
-    `is_reversed` tinyint NOT NULL,
-    `transaction_date` DATE NOT NULL,
-    `currency_code` VARCHAR(3) NOT NULL,
-    `currency_digits` SMALLINT NOT NULL,
-    `currency_multiplesof` SMALLINT NULL DEFAULT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    `description` VARCHAR(200) NOT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_m_account_transfer_details_from_office` (`from_office_id`),
-    INDEX `FK_m_account_transfer_details_to_office` (`to_office_id`),
-    INDEX `FK_m_account_transfer_details_from_client` (`from_client_id`),
-    INDEX `FK_m_account_transfer_details_to_client` (`to_client_id`),
-    INDEX `FK_m_account_transfer_details_from_savings_account` (`from_savings_account_id`),
-    INDEX `FK_m_account_transfer_details_to_savings_account` (`to_savings_account_id`),
-    INDEX `FK_m_account_transfer_details_from_loan_account` (`from_loan_account_id`),
-    INDEX `FK_m_account_transfer_details_to_loan_account` (`to_loan_account_id`),
-    CONSTRAINT `FK_m_account_transfer_details_from_client` FOREIGN KEY (`from_client_id`) REFERENCES `m_client` (`id`),
-    CONSTRAINT `FK_m_account_transfer_details_from_loan_account` FOREIGN KEY (`from_loan_account_id`) REFERENCES `m_loan` (`id`),
-    CONSTRAINT `FK_m_account_transfer_details_from_office` FOREIGN KEY (`from_office_id`) REFERENCES `m_office` (`id`),
-    CONSTRAINT `FK_m_account_transfer_details_from_savings_account` FOREIGN KEY (`from_savings_account_id`) REFERENCES `m_savings_account` (`id`),
-    CONSTRAINT `FK_m_account_transfer_details_to_client` FOREIGN KEY (`to_client_id`) REFERENCES `m_client` (`id`),
-    CONSTRAINT `FK_m_account_transfer_details_to_loan_account` FOREIGN KEY (`to_loan_account_id`) REFERENCES `m_loan` (`id`),
-    CONSTRAINT `FK_m_account_transfer_details_to_office` FOREIGN KEY (`to_office_id`) REFERENCES `m_office` (`id`),
-    CONSTRAINT `FK_m_account_transfer_details_to_savings_account` FOREIGN KEY (`to_savings_account_id`) REFERENCES `m_savings_account` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-CREATE TABLE `m_account_transfer_standing_instructions` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `name` VARCHAR(250) NOT NULL,
-    `account_transfer_details_id` BIGINT NOT NULL,
-    `priority` TINYINT NOT NULL,
-    `status` TINYINT NOT NULL,
-    `instruction_type` TINYINT NOT NULL,
-    `amount` DECIMAL(19,6) NULL DEFAULT NULL,
-    `valid_from` DATE NOT NULL,
-    `valid_till` DATE NULL DEFAULT NULL,
-    `recurrence_type` tinyint NOT NULL,
-    `recurrence_frequency` SMALLINT NULL DEFAULT NULL,
-    `recurrence_interval` SMALLINT NULL DEFAULT NULL,
-    `recurrence_on_day` SMALLINT NULL DEFAULT NULL,
-    `recurrence_on_month` SMALLINT NULL DEFAULT NULL,
-    `last_run_date` DATE NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    UNIQUE INDEX `name` (`name`),
-    INDEX `FK_m_standing_instructions_account_transfer_details` (`account_transfer_details_id`),
-    CONSTRAINT `FK_m_standing_instructions_account_transfer_details` FOREIGN KEY (`account_transfer_details_id`) REFERENCES `m_account_transfer_details` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-
-CREATE TABLE `m_account_transfer_transaction` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `account_transfer_details_id` BIGINT NOT NULL,
-    `from_savings_transaction_id` BIGINT NULL DEFAULT NULL,
-    `from_loan_transaction_id` BIGINT NULL DEFAULT NULL,
-    `to_savings_transaction_id` BIGINT NULL DEFAULT NULL,
-    `to_loan_transaction_id` BIGINT NULL DEFAULT NULL,
-    `is_reversed` tinyint NOT NULL,
-    `transaction_date` DATE NOT NULL,
-    `currency_code` VARCHAR(3) NOT NULL,
-    `currency_digits` SMALLINT NOT NULL,
-    `currency_multiplesof` SMALLINT NULL DEFAULT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    `description` VARCHAR(200) NOT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_m_account_transfer_transaction_from_m_savings_transaction` (`from_savings_transaction_id`),
-    INDEX `FK_m_account_transfer_transaction_to_m_savings_transaction` (`to_savings_transaction_id`),
-    INDEX `FK_m_account_transfer_transaction_to_m_loan_transaction` (`to_loan_transaction_id`),
-    INDEX `FK_m_account_transfer_transaction_from_m_loan_transaction` (`from_loan_transaction_id`),
-    INDEX `FK_m_account_transfer_transaction_account_detail` (`account_transfer_details_id`),
-    CONSTRAINT `FK_m_account_transfer_transaction_account_detail` FOREIGN KEY (`account_transfer_details_id`) REFERENCES `m_account_transfer_details` (`id`),
-    CONSTRAINT `FK_m_account_transfer_transaction_from_m_loan_transaction` FOREIGN KEY (`from_loan_transaction_id`) REFERENCES `m_loan_transaction` (`id`),
-    CONSTRAINT `FK_m_account_transfer_transaction_from_m_savings_transaction` FOREIGN KEY (`from_savings_transaction_id`) REFERENCES `m_savings_account_transaction` (`id`),
-    CONSTRAINT `FK_m_account_transfer_transaction_to_m_loan_transaction` FOREIGN KEY (`to_loan_transaction_id`) REFERENCES `m_loan_transaction` (`id`),
-    CONSTRAINT `FK_m_account_transfer_transaction_to_m_savings_transaction` FOREIGN KEY (`to_savings_transaction_id`) REFERENCES `m_savings_account_transaction` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-
-
-INSERT INTO `m_account_transfer_details` (`from_office_id`, `to_office_id`, `from_client_id`, `to_client_id`, `from_savings_account_id`, `to_savings_account_id`, `from_loan_account_id`, `to_loan_account_id`, `from_savings_transaction_id`, `from_loan_transaction_id`, `to_savings_transaction_id`, `to_loan_transaction_id`, `is_reversed`, `transaction_date`, `currency_code`, `currency_digits`, `currency_multiplesof`, `amount`, `description`) select at.from_office_id,at.to_office_id,at.from_c [...]
-
-INSERT INTO `m_account_transfer_transaction` (`account_transfer_details_id`, `from_savings_transaction_id`, `from_loan_transaction_id`, `to_savings_transaction_id`, `to_loan_transaction_id`, `is_reversed`, `transaction_date`, `currency_code`, `currency_digits`, `currency_multiplesof`, `amount`, `description`) select ad.id,ad.from_savings_transaction_id,ad.from_loan_transaction_id,ad.to_savings_transaction_id,ad.to_loan_transaction_id,ad.is_reversed,ad.transaction_date,ad.currency_code,ad [...]
-
-ALTER TABLE `m_account_transfer_details`
-    DROP COLUMN `from_savings_transaction_id`,
-    DROP COLUMN `from_loan_transaction_id`,
-    DROP COLUMN `to_savings_transaction_id`,
-    DROP COLUMN `to_loan_transaction_id`,
-    DROP COLUMN `is_reversed`,
-    DROP COLUMN `transaction_date`,
-    DROP COLUMN `currency_code`,
-    DROP COLUMN `currency_digits`,
-    DROP COLUMN `currency_multiplesof`,
-    DROP COLUMN `amount`,
-    DROP COLUMN `description`;
-
-DROP TABLE `m_savings_account_transfer`;
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('account_transfer', 'READ_STANDINGINSTRUCTION ', 'STANDINGINSTRUCTION ', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('account_transfer', 'CREATE_STANDINGINSTRUCTION ', 'STANDINGINSTRUCTION ', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('account_transfer', 'UPDATE_STANDINGINSTRUCTION ', 'STANDINGINSTRUCTION ', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('account_transfer', 'DELETE_STANDINGINSTRUCTION ', 'STANDINGINSTRUCTION ', 'DELETE', 0);
-
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Execute Standing Instruction', 'Execute Standing Instruction', '0 0 0 1/1 * ? *', now(), 5, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V161__added_accrual_batch_job.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V161__added_accrual_batch_job.sql
deleted file mode 100644
index 062526a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V161__added_accrual_batch_job.sql
+++ /dev/null
@@ -1,25 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_repayment_schedule`
-    ADD COLUMN `accrual_interest_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `interest_waived_derived`,
-    ADD COLUMN `accrual_fee_charges_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `fee_charges_waived_derived`,
-    ADD COLUMN `accrual_penalty_charges_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `penalty_charges_waived_derived`;
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Add Accrual Transactions', 'Add Accrual Transactions', '0 1 0 1/1 * ? *', now(), 5, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V162__overdue_charge_batch_job.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V162__overdue_charge_batch_job.sql
deleted file mode 100644
index e170ad2..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V162__overdue_charge_batch_job.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Apply penalty to overdue loans', 'Apply penalty to overdue loans', '0 0 0 1/1 * ? *', now(), 5, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V163__added_npa_for_loans.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V163__added_npa_for_loans.sql
deleted file mode 100644
index aa282ea..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V163__added_npa_for_loans.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `overdue_days_for_npa` SMALLINT NULL DEFAULT NULL AFTER `grace_on_arrears_ageing`;
-
-ALTER TABLE `m_loan`
-    ADD COLUMN `is_npa` tinyint NOT NULL DEFAULT '0' AFTER `grace_on_arrears_ageing`;
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`) VALUES ('Update Non Performing Assets', 'Update Non Performing Assets', '0 0 0 1/1 * ? *', now());
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V164__fd_and_rd_deposit_tables.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V164__fd_and_rd_deposit_tables.sql
deleted file mode 100644
index 73e1f37..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V164__fd_and_rd_deposit_tables.sql
+++ /dev/null
@@ -1,256 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE IF NOT EXISTS `m_interest_rate_chart` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(100) DEFAULT NULL,
-  `description` varchar(200) DEFAULT NULL,
-  `from_date` date NOT NULL,
-  `end_date` date DEFAULT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
-CREATE TABLE IF NOT EXISTS `m_interest_rate_slab` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `interest_rate_chart_id` BIGINT NOT NULL,
-  `description` varchar(200) DEFAULT NULL,
-  `period_type_enum` SMALLINT NOT NULL DEFAULT '1',
-  `from_period` INT NOT NULL DEFAULT '0',
-  `to_period` INT DEFAULT NULL,
-  `amount_range_from` decimal(19,6) DEFAULT NULL,
-  `amount_range_to` decimal(19,6) DEFAULT NULL,
-  `annual_interest_rate` decimal(19,6) NOT NULL,
-  `currency_code` varchar(3) NOT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKIRS00000000000001` (`interest_rate_chart_id`),
-  CONSTRAINT `FKIRS00000000000001` FOREIGN KEY (`interest_rate_chart_id`) REFERENCES `m_interest_rate_chart` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE IF NOT EXISTS `m_deposit_product_interest_rate_chart` (
-  `deposit_product_id` BIGINT NOT NULL,
-  `interest_rate_chart_id` BIGINT NOT NULL,
-  UNIQUE KEY `deposit_product_id_interest_rate_chart_id` (`deposit_product_id`,`interest_rate_chart_id`),
-  KEY `FKDPIRC00000000000002` (`interest_rate_chart_id`),
-  CONSTRAINT `FKDPIRC00000000000001` FOREIGN KEY (`deposit_product_id`) REFERENCES `m_savings_product` (`id`),
-  CONSTRAINT `FKDPIRC00000000000002` FOREIGN KEY (`interest_rate_chart_id`) REFERENCES `m_interest_rate_chart` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
-CREATE TABLE IF NOT EXISTS `m_deposit_product_term_and_preclosure` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `savings_product_id` BIGINT NOT NULL DEFAULT '0',
-  `min_deposit_term` INT DEFAULT NULL,
-  `max_deposit_term` INT DEFAULT NULL,
-  `min_deposit_term_type_enum` SMALLINT DEFAULT NULL,
-  `max_deposit_term_type_enum` SMALLINT DEFAULT NULL,
-  `in_multiples_of_deposit_term` INT DEFAULT NULL,
-  `in_multiples_of_deposit_term_type_enum` SMALLINT DEFAULT NULL,
-  `interest_free_period_applicable` SMALLINT DEFAULT NULL,
-  `interest_free_from_period` INT DEFAULT NULL,
-  `interest_free_to_period` INT DEFAULT NULL,
-  `interest_free_period_frequency_enum` SMALLINT DEFAULT NULL,
-  `pre_closure_penal_applicable` SMALLINT DEFAULT NULL,
-  `pre_closure_penal_interest` decimal(19,6) DEFAULT NULL,
-  `pre_closure_penal_interest_on_enum` SMALLINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKDPTP00000000000001` (`savings_product_id`),
-  CONSTRAINT `FKDPTP00000000000001` FOREIGN KEY (`savings_product_id`) REFERENCES `m_savings_product` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
-CREATE TABLE IF NOT EXISTS `m_deposit_product_recurring_detail` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `savings_product_id` BIGINT NOT NULL DEFAULT '0',
-  `recurring_deposit_type_enum` SMALLINT DEFAULT NULL,
-  `recurring_deposit_frequency` INT DEFAULT NULL,
-  `recurring_deposit_frequency_type_enum` SMALLINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKDPRD00000000000001` (`savings_product_id`),
-  CONSTRAINT `FKDPRD00000000000001` FOREIGN KEY (`savings_product_id`) REFERENCES `m_savings_product` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE IF NOT EXISTS `m_savings_account_interest_rate_chart` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `savings_account_id` BIGINT NOT NULL,
-  `name` varchar(100) DEFAULT NULL,
-  `description` varchar(200) DEFAULT NULL,
-  `from_date` date NOT NULL,
-  `end_date` date DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKSAIRC00000000000001` (`savings_account_id`),
-  CONSTRAINT `FKSAIRC00000000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE IF NOT EXISTS `m_savings_account_interest_rate_slab` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `savings_account_interest_rate_chart_id` BIGINT NOT NULL,
-  `description` varchar(200) DEFAULT NULL,
-  `period_type_enum` SMALLINT NOT NULL DEFAULT '1',
-  `from_period` INT NOT NULL DEFAULT '0',
-  `to_period` INT DEFAULT NULL,
-  `amount_range_from` decimal(19,6) DEFAULT NULL,
-  `amount_range_to` decimal(19,6) DEFAULT NULL,
-  `annual_interest_rate` decimal(19,6) NOT NULL,
-  `currency_code` varchar(3) NOT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKSAIRS00000000000001` (`savings_account_interest_rate_chart_id`),
-  CONSTRAINT `FKSAIRS00000000000001` FOREIGN KEY (`savings_account_interest_rate_chart_id`) REFERENCES `m_savings_account_interest_rate_chart` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE IF NOT EXISTS `m_deposit_account_recurring_detail` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `savings_account_id` BIGINT NOT NULL DEFAULT '0',
-  `recurring_deposit_amount` decimal(19,6) DEFAULT NULL,
-  `recurring_deposit_type_enum` SMALLINT DEFAULT NULL,
-  `recurring_deposit_frequency` INT DEFAULT NULL,
-  `recurring_deposit_frequency_type_enum` SMALLINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKDARD00000000000001` (`savings_account_id`),
-  CONSTRAINT `FKDARD00000000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE IF NOT EXISTS `m_deposit_account_term_and_preclosure` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `savings_account_id` BIGINT NOT NULL DEFAULT '0',
-  `min_deposit_term` INT DEFAULT NULL,
-  `max_deposit_term` INT DEFAULT NULL,
-  `min_deposit_term_type_enum` SMALLINT DEFAULT NULL,
-  `max_deposit_term_type_enum` SMALLINT DEFAULT NULL,
-  `in_multiples_of_deposit_term` INT DEFAULT NULL,
-  `in_multiples_of_deposit_term_type_enum` SMALLINT DEFAULT NULL,
-  `interest_free_period_applicable` SMALLINT DEFAULT NULL,
-  `interest_free_from_period` INT DEFAULT NULL,
-  `interest_free_to_period` INT DEFAULT NULL,
-  `interest_free_period_frequency_enum` SMALLINT DEFAULT NULL,
-  `pre_closure_penal_applicable` SMALLINT DEFAULT NULL,
-  `pre_closure_penal_interest` decimal(19,6) DEFAULT NULL,
-  `pre_closure_penal_interest_on_enum` SMALLINT DEFAULT NULL,
-  `deposit_period` INT DEFAULT NULL,
-  `deposit_period_frequency_enum` SMALLINT DEFAULT NULL,
-  `deposit_amount` decimal(19,6) DEFAULT NULL,
-  `maturity_amount` decimal(19,6) DEFAULT NULL,
-  `maturity_date` date DEFAULT NULL,
-  `on_account_closure_enum` SMALLINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKDATP00000000000001` (`savings_account_id`),
-  CONSTRAINT `FKDATP00000000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
-ALTER TABLE `m_savings_product`
-    ADD COLUMN `deposit_type_enum` SMALLINT NOT NULL DEFAULT '100' AFTER `description`;
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `deposit_type_enum` SMALLINT NOT NULL DEFAULT '100' AFTER `account_type_enum`;
-
-ALTER TABLE `m_client`
-  ADD COLUMN `gender_cv_id` INT NULL DEFAULT NULL AFTER `mobile_no`,
-  ADD COLUMN `date_of_birth` DATE NULL DEFAULT NULL AFTER `gender_cv_id`;
-
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_INTERESTRATECHART', 'INTERESTRATECHART', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_INTERESTRATECHART_CHECKER', 'INTERESTRATECHART', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_INTERESTRATECHART', 'INTERESTRATECHART', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_INTERESTRATECHART', 'INTERESTRATECHART', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_INTERESTRATECHART_CHECKER', 'INTERESTRATECHART', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_INTERESTRATECHART_CHECKER', 'INTERESTRATECHART', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_CHARTSLAB', 'CHARTSLAB', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_CHARTSLAB_CHECKER', 'CHARTSLAB', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_CHARTSLAB', 'CHARTSLAB', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_CHARTSLAB', 'CHARTSLAB', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_CHARTSLAB_CHECKER', 'CHARTSLAB', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_CHARTSLAB_CHECKER', 'CHARTSLAB', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_FIXEDDEPOSITPRODUCT', 'FIXEDDEPOSITPRODUCT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_FIXEDDEPOSITPRODUCT_CHECKER', 'FIXEDDEPOSITPRODUCT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_FIXEDDEPOSITPRODUCT', 'FIXEDDEPOSITPRODUCT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_FIXEDDEPOSITPRODUCT', 'FIXEDDEPOSITPRODUCT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_FIXEDDEPOSITPRODUCT_CHECKER', 'FIXEDDEPOSITPRODUCT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_FIXEDDEPOSITPRODUCT_CHECKER', 'FIXEDDEPOSITPRODUCT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_RECURRINGDEPOSITPRODUCT', 'RECURRINGDEPOSITPRODUCT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_RECURRINGDEPOSITPRODUCT_CHECKER', 'RECURRINGDEPOSITPRODUCT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_RECURRINGDEPOSITPRODUCT', 'RECURRINGDEPOSITPRODUCT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_RECURRINGDEPOSITPRODUCT', 'RECURRINGDEPOSITPRODUCT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_RECURRINGDEPOSITPRODUCT_CHECKER', 'RECURRINGDEPOSITPRODUCT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_RECURRINGDEPOSITPRODUCT_CHECKER', 'RECURRINGDEPOSITPRODUCT', 'DELETE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'READ_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'DEPOSIT_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'DEPOSIT', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'DEPOSIT_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'DEPOSIT', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAWAL_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'WITHDRAWAL', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAWAL_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'WITHDRAWAL', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'ACTIVATE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'ACTIVATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'ACTIVATE_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'ACTIVATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CALCULATEINTEREST_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'CALCULATEINTEREST', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CALCULATEINTEREST_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'CALCULATEINTEREST', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'POSTINTEREST_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'POSTINTEREST', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'POSTINTEREST_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'POSTINTEREST', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'APPROVE', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'REJECT_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'REJECT', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAW_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'WITHDRAW', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVALUNDO_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'APPROVALUNDO', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CLOSE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'CLOSE', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVE_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'APPROVE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'REJECT_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'REJECT', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAW_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'WITHDRAW', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVALUNDO_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'APPROVALUNDO', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CLOSE_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'CLOSE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'UNDOTRANSACTION_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'UNDOTRANSACTION', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'UNDOTRANSACTION_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'UNDOTRANSACTION', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'ADJUSTTRANSACTION_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'ADJUSTTRANSACTION', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'READ_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'CREATE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'UPDATE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'DELETE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'DEPOSIT_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'DEPOSIT', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'DEPOSIT_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'DEPOSIT', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAWAL_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'WITHDRAWAL', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAWAL_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'WITHDRAWAL', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'ACTIVATE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'ACTIVATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'ACTIVATE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'ACTIVATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'CALCULATEINTEREST', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'CALCULATEINTEREST', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'POSTINTEREST_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'POSTINTEREST', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'POSTINTEREST_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'POSTINTEREST', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'APPROVE', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'REJECT_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'REJECT', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAW_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'WITHDRAW', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVALUNDO_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'APPROVALUNDO', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CLOSE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'CLOSE', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'APPROVE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'REJECT_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'REJECT', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'WITHDRAW_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'WITHDRAW', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'APPROVALUNDO_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'APPROVALUNDO', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'CLOSE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'CLOSE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'UNDOTRANSACTION_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'UNDOTRANSACTION', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'UNDOTRANSACTION_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'UNDOTRANSACTION', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'ADJUSTTRANSACTION_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'ADJUSTTRANSACTION', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('transaction_savings', 'PREMATURECLOSE_FIXEDDEPOSITACCOUNT_CHECKER', 'FIXEDDEPOSITACCOUNT', 'PREMATURECLOSE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`)                      VALUES ('transaction_savings', 'PREMATURECLOSE_FIXEDDEPOSITACCOUNT', 'FIXEDDEPOSITACCOUNT', 'PREMATURECLOSE');
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('transaction_savings', 'PREMATURECLOSE_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'PREMATURECLOSE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`)                      VALUES ('transaction_savings', 'PREMATURECLOSE_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'PREMATURECLOSE');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V165__added_permission_for_disburse_to_saving_account.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V165__added_permission_for_disburse_to_saving_account.sql
deleted file mode 100644
index 152cb24..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V165__added_permission_for_disburse_to_saving_account.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('transaction_loan', 'DISBURSETOSAVINGS_LOAN', 'LOAN', 'DISBURSETOSAVINGS', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V166__added_deposit_amount_to_product_term_and_preclosure.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V166__added_deposit_amount_to_product_term_and_preclosure.sql
deleted file mode 100644
index 1a07165..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V166__added_deposit_amount_to_product_term_and_preclosure.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_deposit_product_term_and_preclosure`
-    ADD COLUMN `min_deposit_amount` DECIMAL(19,6) NULL DEFAULT NULL,
-    ADD COLUMN `max_deposit_amount` DECIMAL(19,6) NULL DEFAULT NULL,
-    ADD COLUMN `deposit_amount` DECIMAL(19,6) NULL DEFAULT NULL;
-
-ALTER TABLE  m_deposit_account_term_and_preclosure
-    ADD COLUMN  `expected_firstdepositon_date` DATE NULL DEFAULT NULL;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V167__added_columns_for_writtenOff_loans_recovered.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V167__added_columns_for_writtenOff_loans_recovered.sql
deleted file mode 100644
index 73fc973..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V167__added_columns_for_writtenOff_loans_recovered.sql
+++ /dev/null
@@ -1,46 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (
-`id` ,
-`grouping` ,
-`code` ,
-`entity_name` ,
-`action_name` ,
-`can_maker_checker`
-)
-VALUES (
-NULL ,  'transaction_loan',  'RECOVERYPAYMENT_LOAN',  'LOAN',  'RECOVERYPAYMENT',  '0'
-);
-
-
-Alter table m_loan
-add column total_recovered_derived Decimal(19,6);
-
-
-INSERT INTO `acc_gl_account` (`name`, `hierarchy`, `gl_code`,`account_usage`, `classification_enum`,`description`)
-select 'Loan Recovery (Temp)', '.', '220002-Temp', 1, 4,'Temporary account to track income from Loan recovery'
-FROM m_product_loan WHERE accounting_type != 1
-limit 1;
-
-INSERT INTO `acc_product_mapping` (`gl_account_id`,`product_id`,`product_type`,`financial_account_type`)
-select (select max(id) from acc_gl_account where classification_enum=4 and account_usage=1 LIMIT 1), mapping.product_id, mapping.product_type, 12
-from acc_product_mapping mapping
-where mapping.financial_account_type = 4 and mapping.product_type=1
-group by mapping.product_id;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V168__added_transfer_fixed_deposit_interest_to_linked_account.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V168__added_transfer_fixed_deposit_interest_to_linked_account.sql
deleted file mode 100644
index 5f5fdc8..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V168__added_transfer_fixed_deposit_interest_to_linked_account.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `job_run_history`
-    CHANGE COLUMN `error_message` `error_message` TEXT NULL DEFAULT NULL AFTER `status`;
-
-ALTER TABLE `m_deposit_account_term_and_preclosure`
-    ADD COLUMN `transfer_interest_to_linked_account` tinyint NOT NULL DEFAULT '0' AFTER `expected_firstdepositon_date`;
-
-UPDATE `job` SET `scheduler_group`=1 WHERE  `name`='Post Interest For Savings';
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Transfer Interest To Savings', 'Transfer Interest To Savings', '0 2 0 1/1 * ? *', now(), 4, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 1, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V169__update_dashboard_reports_to_core_reports_use_report_to_false.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V169__update_dashboard_reports_to_core_reports_use_report_to_false.sql
deleted file mode 100644
index 25d1e16..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V169__update_dashboard_reports_to_core_reports_use_report_to_false.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-UPDATE stretchy_report SET core_report=1, use_report=0 WHERE report_name in ('ClientTrendsByDay','ClientTrendsByWeek','ClientTrendsByMonth','LoanTrendsByDay','LoanTrendsByWeek','LoanTrendsByMonth','Demand_Vs_Collection','Disbursal_Vs_Awaitingdisbursal');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V16__drop_min_max_column_on_loan_table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V16__drop_min_max_column_on_loan_table.sql
deleted file mode 100644
index bb0911f..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V16__drop_min_max_column_on_loan_table.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan`
-    DROP COLUMN `min_principal_amount`,
-    DROP COLUMN `max_principal_amount`,
-    DROP COLUMN `min_nominal_interest_rate_per_period`,
-    DROP COLUMN `max_nominal_interest_rate_per_period`,
-    DROP COLUMN `min_number_of_repayments`,
-    DROP COLUMN `max_number_of_repayments`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V170__update_deposit_accounts_maturity_details_job.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V170__update_deposit_accounts_maturity_details_job.sql
deleted file mode 100644
index d2d878a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V170__update_deposit_accounts_maturity_details_job.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `group_name`, `previous_run_start_time`, `next_run_time`, `job_key`, `initializing_errorlog`, `is_active`, `currently_running`, `updates_allowed`, `scheduler_group`, `is_misfired`) VALUES ('Update Deposit Accounts Maturity details', 'Update Deposit Accounts Maturity details', '0 0 0 1/1 * ? *', now(), 5, NULL, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V171__added_mandatory_savings_and_rd_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V171__added_mandatory_savings_and_rd_changes.sql
deleted file mode 100644
index 550c7c7..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V171__added_mandatory_savings_and_rd_changes.sql
+++ /dev/null
@@ -1,90 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `c_configuration` (`name`, `value`, `enabled`) VALUES ('age_limit_for_senior_citizen', 65, 1);
-INSERT INTO `c_configuration` (`name`, `value`, `enabled`) VALUES ('age_limit_for_children', 15, 1);
-
-
-ALTER TABLE `m_interest_rate_slab`
-    ADD COLUMN `interest_rate_for_female` DECIMAL(19,6) NULL AFTER `annual_interest_rate`,
-    ADD COLUMN `interest_rate_for_children` DECIMAL(19,6) NULL AFTER `interest_rate_for_female`,
-    ADD COLUMN `interest_rate_for_senior_citizen` DECIMAL(19,6) NULL AFTER `interest_rate_for_children`;
-
-ALTER TABLE `m_savings_account_interest_rate_slab`
-    ADD COLUMN `interest_rate_for_female` DECIMAL(19,6) NULL AFTER `annual_interest_rate`,
-    ADD COLUMN `interest_rate_for_children` DECIMAL(19,6) NULL AFTER `interest_rate_for_female`,
-    ADD COLUMN `interest_rate_for_senior_citizen` DECIMAL(19,6) NULL AFTER `interest_rate_for_children`;
-
-ALTER TABLE `m_deposit_account_recurring_detail`
-    CHANGE COLUMN `recurring_deposit_amount` `mandatory_recommended_deposit_amount` DECIMAL(19,6) NULL DEFAULT NULL,
-    ADD COLUMN `is_mandatory` TINYINT NOT NULL DEFAULT '0',
-    ADD COLUMN `allow_withdrawal` TINYINT NOT NULL DEFAULT '0',
-    ADD COLUMN `adjust_advance_towards_future_payments` TINYINT NOT NULL DEFAULT '1',
-    ADD COLUMN `is_calendar_inherited` TINYINT NOT NULL DEFAULT '0',
-    ADD COLUMN `total_overdue_amount` DECIMAL(19,6) NULL DEFAULT NULL,
-    ADD COLUMN `no_of_overdue_installments` INT NULL DEFAULT NULL,
-    DROP COLUMN `recurring_deposit_type_enum`,
-    DROP COLUMN `recurring_deposit_frequency`,
-    DROP COLUMN `recurring_deposit_frequency_type_enum`;
-
-
-ALTER TABLE `m_deposit_product_term_and_preclosure`
-    DROP COLUMN `interest_free_period_applicable`,
-    DROP COLUMN `interest_free_from_period`,
-    DROP COLUMN `interest_free_to_period`,
-    DROP COLUMN `interest_free_period_frequency_enum`;
-
-ALTER TABLE `m_deposit_product_recurring_detail`
-    ADD COLUMN `is_mandatory` tinyint NOT NULL DEFAULT '1',
-    ADD COLUMN `allow_withdrawal` tinyint NOT NULL DEFAULT '0',
-    ADD COLUMN `adjust_advance_towards_future_payments` tinyint NOT NULL DEFAULT '1',
-    DROP COLUMN `recurring_deposit_type_enum`,
-    DROP COLUMN `recurring_deposit_frequency`,
-    DROP COLUMN `recurring_deposit_frequency_type_enum`;
-
-ALTER TABLE `m_deposit_account_term_and_preclosure`
-    DROP COLUMN `interest_free_period_applicable`,
-    DROP COLUMN `interest_free_from_period`,
-    DROP COLUMN `interest_free_to_period`,
-    DROP COLUMN `interest_free_period_frequency_enum`;
-
-CREATE TABLE `m_mandatory_savings_schedule` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `savings_account_id` BIGINT NOT NULL,
-    `fromdate` DATE NULL DEFAULT NULL,
-    `duedate` DATE NOT NULL,
-    `installment` SMALLINT NOT NULL,
-    `deposit_amount` DECIMAL(19,6) NULL DEFAULT NULL,
-    `deposit_amount_completed_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `total_paid_in_advance_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `total_paid_late_derived` DECIMAL(19,6) NULL DEFAULT NULL,
-    `completed_derived` BIT(1) NOT NULL,
-    `obligations_met_on_date` DATE NULL DEFAULT NULL,
-    `createdby_id` BIGINT NULL DEFAULT NULL,
-    `created_date` DATETIME NULL DEFAULT NULL,
-    `lastmodified_date` DATETIME NULL DEFAULT NULL,
-    `lastmodifiedby_id` BIGINT NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FKMSS0000000001` (`savings_account_id`),
-    CONSTRAINT `FKMSS0000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
-);
-
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'READ_RECURRINGDEPOSITPRODUCT', 'RECURRINGDEPOSITPRODUCT', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('organisation', 'READ_FIXEDDEPOSITPRODUCT', 'FIXEDDEPOSITPRODUCT', 'READ', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V172__accounting_changes_for_transfers.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V172__accounting_changes_for_transfers.sql
deleted file mode 100644
index b26c444..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V172__accounting_changes_for_transfers.sql
+++ /dev/null
@@ -1,40 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'READ_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'READ', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'CREATE_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'CREATE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'DELETE_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'DELETE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'UPDATE_OFFICEGLACCOUNT', 'OFFICEGLACCOUNT', 'UPDATE', 0);
-
-CREATE TABLE `acc_gl_office_mapping` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `gl_account_id` BIGINT NOT NULL DEFAULT '0',
-    `office_id` BIGINT NOT NULL,
-    `financial_account_type` SMALLINT NOT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_office_mapping_acc_gl_account` (`gl_account_id`),
-    INDEX `FK_office_mapping_office` (`office_id`),
-    CONSTRAINT `FK_office_mapping_acc_gl_account` FOREIGN KEY (`gl_account_id`) REFERENCES `acc_gl_account` (`id`),
-    CONSTRAINT `FK_office_mapping_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V173__ppi.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V173__ppi.sql
deleted file mode 100644
index d65b812..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V173__ppi.sql
+++ /dev/null
@@ -1,122 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_code_value`
-ADD COLUMN `code_score` INT NULL AFTER `order_position`;
-
-
-CREATE TABLE IF NOT EXISTS `ppi_scores` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `score_from` INT NOT NULL,
-  `score_to` INT NOT NULL,
-  PRIMARY KEY (`id`)
-) COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-
-INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (0, 4);
-
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (5, 9);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (10, 14);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (15, 19);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (20, 24);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (25,29 );
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (30, 34);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (35, 39);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (40, 44);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (45, 49);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (50, 54);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (55, 59);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (60,64);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (65, 69);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (70, 74);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (75, 79);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (80,84);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (85, 89);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (90, 94);
-    INSERT INTO `ppi_scores` ( `score_from`, `score_to`)
-VALUES
-    (95, 100);
-
-
-
-CREATE TABLE IF NOT EXISTS `ppi_likelihoods` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `code` varchar(100) NOT NULL,
-  `name` varchar(250) NOT NULL,
-  PRIMARY KEY (`id`)
-) COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB ;
-
-
-
- CREATE TABLE IF NOT EXISTS `ppi_likelihoods_ppi` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `likelihood_id` BIGINT NOT NULL,
-  `ppi_name` varchar(250) NOT NULL,
-  `enabled` INT NOT NULL DEFAULT '100',
-  PRIMARY KEY (`id`)
-) COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB;
-
-/**PPI permission**/
-INSERT INTO `m_permission` (`id`, `grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES (NULL, 'datatable', 'UPDATE_LIKELIHOOD', 'likelihood', 'UPDATE', '0');
-
-INSERT INTO `m_permission` (`id`, `grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES (NULL, 'survey', 'REGISTER_SURVEY', 'survey', 'CREATE', '0');
-
-/**Registered table category**/
-ALTER TABLE  `x_registered_table` ADD  `category` INT NOT NULL  DEFAULT 100;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V174__remove_interest_accrual.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V174__remove_interest_accrual.sql
deleted file mode 100644
index d26c2be..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V174__remove_interest_accrual.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/**Remove all existing apply interest transaction Types**/
-update m_loan_transaction set interest_portion_derived=amount where transaction_type_enum=11;
-update m_loan_transaction set transaction_type_enum=10 where transaction_type_enum=11;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V175__added_incentive_interest_rates.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V175__added_incentive_interest_rates.sql
deleted file mode 100644
index e2f766a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V175__added_incentive_interest_rates.sql
+++ /dev/null
@@ -1,68 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_client`
-    ADD COLUMN `client_type_cv_id` INT NULL DEFAULT NULL AFTER `default_savings_account`,
-    ADD COLUMN `client_classification_cv_id` INT NULL DEFAULT NULL AFTER `client_type_cv_id`,
-    ADD CONSTRAINT `FK_m_client_type_m_code_value` FOREIGN KEY (`client_type_cv_id`) REFERENCES `m_code_value` (`id`),
-    ADD CONSTRAINT `FK_m_client_classification_m_code_value` FOREIGN KEY (`client_classification_cv_id`) REFERENCES `m_code_value` (`id`),
-    ADD CONSTRAINT `FK1_m_client_gender_m_code_value` FOREIGN KEY (`gender_cv_id`) REFERENCES `m_code_value` (`id`);
-
-INSERT INTO `m_code` (`code_name`, `is_system_defined`) VALUES ('ClientType', 1);
-INSERT INTO `m_code` (`code_name`, `is_system_defined`) VALUES ('ClientClassification', 1);
-
-
-CREATE TABLE `m_interest_incentives` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `interest_rate_slab_id` BIGINT NOT NULL,
-    `entiry_type` SMALLINT NOT NULL,
-    `attribute_name` SMALLINT NOT NULL,
-    `condition_type` SMALLINT NOT NULL,
-    `attribute_value` VARCHAR(50) NOT NULL,
-    `incentive_type` SMALLINT NOT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_m_interest_incentives_m_interest_rate_slab` (`interest_rate_slab_id`),
-    CONSTRAINT `FK_m_interest_incentives_m_interest_rate_slab` FOREIGN KEY (`interest_rate_slab_id`) REFERENCES `m_interest_rate_slab` (`id`)
-);
-
-
-CREATE TABLE `m_savings_interest_incentives` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `deposit_account_interest_rate_slab_id` BIGINT NOT NULL,
-    `entiry_type` SMALLINT NOT NULL,
-    `attribute_name` SMALLINT NOT NULL,
-    `condition_type` SMALLINT NOT NULL,
-    `attribute_value` VARCHAR(50) NOT NULL,
-    `incentive_type` SMALLINT NOT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_m_savings_interest_incentives_m_savings_interest_rate_slab` (`deposit_account_interest_rate_slab_id`),
-    CONSTRAINT `FK_m_savings_interest_incentives_m_savings_interest_rate_slab` FOREIGN KEY (`deposit_account_interest_rate_slab_id`) REFERENCES `m_savings_account_interest_rate_slab` (`id`)
-);
-
-ALTER TABLE `m_interest_rate_slab`
-    DROP COLUMN `interest_rate_for_female`,
-    DROP COLUMN `interest_rate_for_children`,
-    DROP COLUMN `interest_rate_for_senior_citizen`;
-
-ALTER TABLE `m_savings_account_interest_rate_slab`
-    DROP COLUMN `interest_rate_for_female`,
-    DROP COLUMN `interest_rate_for_children`,
-    DROP COLUMN `interest_rate_for_senior_citizen`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V176__updates_to_financial_activity_accounts.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V176__updates_to_financial_activity_accounts.sql
deleted file mode 100644
index 5b94271..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V176__updates_to_financial_activity_accounts.sql
+++ /dev/null
@@ -1,34 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE acc_gl_office_mapping DROP FOREIGN KEY `FK_office_mapping_office`;
-
-ALTER TABLE acc_gl_office_mapping DROP column office_id;
-
-ALTER TABLE `acc_gl_office_mapping`
-    ALTER `financial_account_type` DROP DEFAULT;
-
-ALTER TABLE `acc_gl_office_mapping`
-    CHANGE COLUMN `financial_account_type` `financial_activity_type` SMALLINT NOT NULL;
-
-ALTER TABLE `acc_gl_office_mapping`
-    ADD UNIQUE INDEX `financial_activity_type` (`financial_activity_type`);
-
-
-RENAME TABLE `acc_gl_office_mapping` TO `acc_gl_financial_activity_account`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V177__cleanup_for_client_incentives.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V177__cleanup_for_client_incentives.sql
deleted file mode 100644
index b3ad815..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V177__cleanup_for_client_incentives.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-DELETE FROM `c_configuration` WHERE  `name`='age_limit_for_senior_citizen';
-DELETE FROM `c_configuration` WHERE  `name`='age_limit_for_children';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V178__updates_to_financial_activity_accounts_pt2.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V178__updates_to_financial_activity_accounts_pt2.sql
deleted file mode 100644
index b5138b7..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V178__updates_to_financial_activity_accounts_pt2.sql
+++ /dev/null
@@ -1,35 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-update m_permission set entity_name="FINANCIALACTIVITYACCOUNT" where entity_name="OFFICEGLACCOUNT";
-update m_permission set code="READ_FINANCIALACTIVITYACCOUNT" where code="READ_OFFICEGLACCOUNT";
-update m_permission set code="CREATE_FINANCIALACTIVITYACCOUNT" where code="CREATE_OFFICEGLACCOUNT";
-update m_permission set code="DELETE_FINANCIALACTIVITYACCOUNT" where code="DELETE_OFFICEGLACCOUNT";
-update m_permission set code="UPDATE_FINANCIALACTIVITYACCOUNT" where code="UPDATE_OFFICEGLACCOUNT";
-
-/*Default Account for tracking account transfer*/
-INSERT INTO `acc_gl_account` (`name`, `hierarchy`, `gl_code`,`account_usage`, `classification_enum`,`description`)
-select 'Liability Transfer (Temp)', '.', '220004-Temp', 1, 2,'Temporary Liability account to track Account Transfers'
-FROM m_product_loan WHERE accounting_type != 1
-limit 1;
-
-INSERT INTO `acc_gl_financial_activity_account` (`gl_account_id`,`financial_activity_type`)
-select (select max(id) from acc_gl_account where classification_enum=2 and account_usage=1 LIMIT 1), 200
-FROM m_product_loan WHERE accounting_type != 1
-limit 1;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V179__updates_to_action_names_for_maker_checker_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V179__updates_to_action_names_for_maker_checker_permissions.sql
deleted file mode 100644
index ffc53e3..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V179__updates_to_action_names_for_maker_checker_permissions.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-UPDATE m_permission
-SET action_name = CONCAT(action_name,'_CHECKER')
-WHERE code LIKE "%_CHECKER";
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V17__update_stretchy_reporting_ddl.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V17__update_stretchy_reporting_ddl.sql
deleted file mode 100644
index 72f0a68..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V17__update_stretchy_reporting_ddl.sql
+++ /dev/null
@@ -1,109 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/*
-Reason for all the tmp tables and renames is had mysql problems with foreign keys doing alter table commands
-*/
-
-CREATE TABLE `stretchy_report_tmp` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  `report_name` varchar(100) NOT NULL,
-  `report_type` varchar(20) NOT NULL,
-  `report_subtype` varchar(20) DEFAULT NULL,
-  `report_category` varchar(45) DEFAULT NULL,
-  `report_sql` text,
-  `description` text,
-  `core_report` tinyint DEFAULT '0',
-  `use_report` tinyint DEFAULT '0',
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `report_name_UNIQUE` (`report_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-insert into stretchy_report_tmp
-(id, report_name, report_type, report_subtype, report_category,
-report_sql, description, core_report, use_report)
-select report_id, report_name, report_type, report_subtype, report_category,
-report_sql, description, core_report, use_report
-from stretchy_report;
-
-CREATE TABLE `stretchy_parameter_tmp` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  `parameter_name` varchar(45) NOT NULL,
-  `parameter_variable` varchar(45) DEFAULT NULL,
-  `parameter_label` varchar(45) NOT NULL,
-  `parameter_displayType` varchar(45) NOT NULL,
-  `parameter_FormatType` varchar(10) NOT NULL,
-  `parameter_default` varchar(45) NOT NULL,
-  `special` varchar(1) DEFAULT NULL,
-  `selectOne` varchar(1) DEFAULT NULL,
-  `selectAll` varchar(1) DEFAULT NULL,
-  `parameter_sql` text,
-  `parent_id` INT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `name_UNIQUE` (`parameter_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-insert into stretchy_parameter_tmp
-(id, parameter_name, parameter_variable, parameter_label, parameter_displayType, parameter_FormatType,
-parameter_default, special, selectOne, selectAll, parameter_sql, parent_id)
-select parameter_id, parameter_name, parameter_variable, parameter_label, parameter_displayType, parameter_FormatType,
-parameter_default, special, selectOne, selectAll, parameter_sql, parent_parameter_id
-from stretchy_parameter;
-
-CREATE TABLE `stretchy_report_parameter_tmp` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  `report_id` INT NOT NULL,
-  `parameter_id` INT NOT NULL,
-  `report_parameter_name` varchar(45) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `report_id_name_UNIQUE` (`report_id`,`report_parameter_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-insert into stretchy_report_parameter_tmp(report_id, parameter_id, report_parameter_name)
-select report_id, parameter_id, report_parameter_name
-from stretchy_report_parameter;
-
-
-ALTER TABLE `stretchy_parameter_tmp`
-  ADD CONSTRAINT `fk_stretchy_parameter_001`
-  FOREIGN KEY (`parent_id` )
-  REFERENCES `stretchy_parameter_tmp` (`id` )
-  ON DELETE RESTRICT ON UPDATE RESTRICT,
-  ADD INDEX `fk_stretchy_parameter_001_idx` (`parent_id` ASC);
-
-SET foreign_key_checks = 0;
-ALTER TABLE `stretchy_report_parameter_tmp`
-  ADD CONSTRAINT `fk_report_parameter_001` FOREIGN KEY (`report_id` )
-  REFERENCES `stretchy_report_tmp` (`id` ) ON DELETE CASCADE ON UPDATE RESTRICT,
-
-  ADD CONSTRAINT `fk_report_parameter_002` FOREIGN KEY (`parameter_id` )
-  REFERENCES `stretchy_parameter_tmp` (`id` ) ON DELETE RESTRICT ON UPDATE RESTRICT,
-
-  ADD INDEX `fk_report_parameter_001_idx` (`report_id` ASC),
-  ADD INDEX `fk_report_parameter_002_idx` (`parameter_id` ASC) ;
-SET foreign_key_checks = 1;
-
-drop table stretchy_report_parameter;
-drop table stretchy_report;
-drop table stretchy_parameter;
-
-rename table
-stretchy_report_tmp to stretchy_report,
-stretchy_parameter_tmp to stretchy_parameter,
-stretchy_report_parameter_tmp to stretchy_report_parameter;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V180__update_report_schemas_for_disbursed_vs_awaitingdisbursal_and_groupnamesbystaff.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V180__update_report_schemas_for_disbursed_vs_awaitingdisbursal_and_groupnamesbystaff.sql
deleted file mode 100644
index c79e427..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V180__update_report_schemas_for_disbursed_vs_awaitingdisbursal_and_groupnamesbystaff.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-UPDATE `stretchy_report` SET `report_sql`='select awaitinddisbursal.amount-disbursedAmount.amount as amountToBeDisburse, disbursedAmount.amount as disbursedAmount from \n(\nSELECT 	COUNT(ln.id) AS noOfLoans, \n			IFNULL(SUM(ln.principal_amount),0) AS amount\nFROM \nm_office of\nLEFT JOIN m_client cl ON cl.office_id = of.id\nLEFT JOIN m_loan ln ON cl.id = ln.client_id\nWHERE \nln.expected_disbursedon_date = DATE(NOW()) AND \n(ln.loan_status_id=200 OR ln.loan_status_id=300) AND\n of.hierar [...]
-UPDATE `stretchy_report` SET `core_report`=1, `use_report`=0 WHERE `report_name`='GroupNamesByStaff';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V181__standing_instruction_logging.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V181__standing_instruction_logging.sql
deleted file mode 100644
index b653919..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V181__standing_instruction_logging.sql
+++ /dev/null
@@ -1,30 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_account_transfer_standing_instructions_history` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `standing_instruction_id` BIGINT NOT NULL,
-    `status` VARCHAR(20) NOT NULL,
-    `execution_time` DATETIME NOT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    `error_log` VARCHAR(500) NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_m_account_transfer_standing_instructions_history` (`standing_instruction_id`),
-    CONSTRAINT `FK_m_account_transfer_standing_instructions_m_history` FOREIGN KEY (`standing_instruction_id`) REFERENCES `m_account_transfer_standing_instructions` (`id`)
-);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V182__added_min_required_balance_to_savings_product.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V182__added_min_required_balance_to_savings_product.sql
deleted file mode 100644
index a67b826..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V182__added_min_required_balance_to_savings_product.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_product`
-    ADD COLUMN `min_required_balance` DECIMAL(19,6) NULL AFTER `overdraft_limit`,
-    ADD COLUMN `allow_overdraft_min_balance` tinyint NOT NULL DEFAULT '0' AFTER `min_required_balance`;
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `min_required_balance` DECIMAL(19,6) NULL AFTER `account_balance_derived`,
-    ADD COLUMN `allow_overdraft_min_balance` tinyint NOT NULL DEFAULT '0' AFTER `min_required_balance`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V183__added_min_balance_for_interest_calculation.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V183__added_min_balance_for_interest_calculation.sql
deleted file mode 100644
index 04ec0ff..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V183__added_min_balance_for_interest_calculation.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_product`
-    ADD COLUMN `min_balance_for_interest_calculation` DECIMAL(19,6) NULL DEFAULT NULL AFTER `allow_overdraft_min_balance`;
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `min_balance_for_interest_calculation` DECIMAL(19,6) NULL DEFAULT NULL AFTER `allow_overdraft_min_balance`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V184__update_min_required_balance_for_savings_product.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V184__update_min_required_balance_for_savings_product.sql
deleted file mode 100644
index 549d9de..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V184__update_min_required_balance_for_savings_product.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_product`
-    CHANGE COLUMN `allow_overdraft_min_balance` `enforce_min_required_balance` tinyint NOT NULL DEFAULT '0' AFTER `min_required_balance`;
-
-ALTER TABLE `m_savings_account`
-    CHANGE COLUMN `allow_overdraft_min_balance` `enforce_min_required_balance` tinyint NOT NULL DEFAULT '0' AFTER `min_required_balance`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V185__add_accrual_till_date_for_periodic_accrual.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V185__add_accrual_till_date_for_periodic_accrual.sql
deleted file mode 100644
index 7614883..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V185__add_accrual_till_date_for_periodic_accrual.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan`
-    ADD COLUMN `accrued_till` DATE NULL DEFAULT NULL AFTER `total_recovered_derived`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V186__added_periodic_accrual_job.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V186__added_periodic_accrual_job.sql
deleted file mode 100644
index 8df4476..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V186__added_periodic_accrual_job.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `scheduler_group`) VALUES ('Add Periodic Accrual Transactions', 'Add Periodic Accrual Transactions', '0 2 0 1/1 * ? *', now(), 4, 3);
-
-UPDATE `job` SET `scheduler_group`=3 WHERE  `name`='Add Accrual Transactions';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V187__added_permission_to_periodic_accrual.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V187__added_permission_to_periodic_accrual.sql
deleted file mode 100644
index 0bdf175..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V187__added_permission_to_periodic_accrual.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('accounting', 'EXECUTE_PERIODICACCRUALACCOUNTING', 'PERIODICACCRUALACCOUNTING', 'EXECUTE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V188__add_savingscharge_inactivate_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V188__add_savingscharge_inactivate_permissions.sql
deleted file mode 100644
index d6b43eb..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V188__add_savingscharge_inactivate_permissions.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'INACTIVATE_SAVINGSACCOUNTCHARGE', 'SAVINGSACCOUNTCHARGE', 'INACTIVATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'INACTIVATE_SAVINGSACCOUNTCHARGE_CHECKER', 'SAVINGSACCOUNTCHARGE', 'INACTIVATE_CHECKER', 0);
-
-ALTER TABLE `m_savings_account_charge`
-    ADD COLUMN `inactivated_on_date` DATE NULL DEFAULT NULL AFTER `is_active`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V189__m_loan_interest_recalculation_tables.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V189__m_loan_interest_recalculation_tables.sql
deleted file mode 100644
index f660c4d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V189__m_loan_interest_recalculation_tables.sql
+++ /dev/null
@@ -1,50 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `days_in_month_enum` SMALLINT NOT NULL DEFAULT '1' AFTER `overdue_days_for_npa`,
-    ADD COLUMN `days_in_year_enum` SMALLINT NOT NULL DEFAULT '1' AFTER `days_in_month_enum`,
-    ADD COLUMN `interest_recalculation_enabled` TINYINT NOT NULL DEFAULT '0' AFTER `days_in_year_enum`;
-
-ALTER TABLE `m_loan`
-    ADD COLUMN `days_in_month_enum` SMALLINT NOT NULL DEFAULT '1' AFTER `accrued_till`,
-    ADD COLUMN `days_in_year_enum` SMALLINT NOT NULL DEFAULT '1' AFTER `days_in_month_enum`,
-    ADD COLUMN `interest_recalculation_enabled` TINYINT NOT NULL DEFAULT '0' AFTER `days_in_year_enum`;
-
-CREATE TABLE `m_product_loan_recalculation_details` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `product_id` BIGINT NOT NULL,
-    `compound_type_enum` SMALLINT NOT NULL,
-    `reschedule_strategy_enum` SMALLINT NOT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_m_product_loan_m_product_loan_recalculation_details` FOREIGN KEY (`product_id`) REFERENCES `m_product_loan` (`id`)
-)
-COLLATE='latin1_swedish_ci'
-ENGINE=InnoDB;
-
-CREATE TABLE `m_loan_recalculation_details` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_id` BIGINT NOT NULL,
-    `compound_type_enum` SMALLINT NOT NULL,
-    `reschedule_strategy_enum` SMALLINT NOT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_m_loan_m_loan_recalculation_details` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-)
-COLLATE='latin1_swedish_ci'
-ENGINE=InnoDB;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V18__update_stretchy_reporting_reportSql.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V18__update_stretchy_reporting_reportSql.sql
deleted file mode 100644
index 6ea129a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V18__update_stretchy_reporting_reportSql.sql
+++ /dev/null
@@ -1,25 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-UPDATE `stretchy_parameter` SET `parameter_sql`='select sp.parameter_name, sp.parameter_variable, sp.parameter_label, sp.parameter_displayType, \r sp.parameter_FormatType, sp.parameter_default, sp.selectOne,  sp.selectAll, spp.parameter_name as parentParameterName\r from stretchy_parameter sp\r left join stretchy_parameter spp on spp.id = sp.parent_id\r where sp.special is null\r and exists \r 	(select \'f\' \r 	from stretchy_report sr\r 	join stretchy_report_parameter srp on srp.report_ [...]
-
-UPDATE `stretchy_parameter` SET `parameter_sql`='select  r.id as report_id, r.report_name, r.report_type, r.report_subtype, r.report_category,\nrp.id as parameter_id, rp.report_parameter_name, p.parameter_name\n  from stretchy_report r\n  left join stretchy_report_parameter rp on rp.report_id = r.id \n  left join stretchy_parameter p on p.id = rp.parameter_id\n  where r.use_report is true\n  and exists\n  ( select \'f\'\n  from m_appuser_role ur \n  join m_role r on r.id = ur.role_id\n   [...]
-
-UPDATE `stretchy_parameter` SET `parameter_sql`='select  r.id as report_id, r.report_name, r.report_type, r.report_subtype, r.report_category,\n  rp.id as parameter_id, rp.report_parameter_name, p.parameter_name\n  from stretchy_report r\n  left join stretchy_report_parameter rp on rp.report_id = r.id\n  left join stretchy_parameter p on p.id = rp.parameter_id\n  where r.report_category = \'${reportCategory}\'\n  and r.use_report is true\n  and exists\n  (select \'f\'\n  from m_appuser_r [...]
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V190__add_associategroup_disassociategroup_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V190__add_associategroup_disassociategroup_permissions.sql
deleted file mode 100644
index fc061cd..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V190__add_associategroup_disassociategroup_permissions.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio_center', 'DISASSOCIATEGROUPS_CENTER', 'CENTER', 'DISASSOCIATEGROUPS', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio_center', 'ASSOCIATEGROUPS_CENTER', 'CENTER', 'ASSOCIATEGROUPS', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio_center', 'DISASSOCIATEGROUPS_CENTER_CHECKER', 'CENTER', 'DISASSOCIATEGROUPS_CHECKER', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio_center', 'ASSOCIATEGROUPS_CENTER_CHECKER', 'CENTER', 'ASSOCIATEGROUPS_CHECKER', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V191__update_gl_account_increase_size_of_name_col.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V191__update_gl_account_increase_size_of_name_col.sql
deleted file mode 100644
index 3d936e5..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V191__update_gl_account_increase_size_of_name_col.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `acc_gl_account`
-    CHANGE COLUMN `name` `name` VARCHAR(200) NOT NULL AFTER `id`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V192__interest_recalculate_job.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V192__interest_recalculate_job.sql
deleted file mode 100644
index b4f1e7e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V192__interest_recalculate_job.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`, `task_priority`, `scheduler_group`) VALUES ('Recalculate Interest For Loans', 'Recalculate Interest For Loans', '0 1 0 1/1 * ? *', now(), 4, 3);
-
-UPDATE `job` SET `scheduler_group`=3 WHERE  `name`='Update Non Performing Assets';
-
-UPDATE `job` SET `task_priority`=3 WHERE  `name`='Add Accrual Transactions';
-
-UPDATE `job` SET `task_priority`=2 WHERE  `name`='Add Periodic Accrual Transactions';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V193__added_column_joiningDate_for_staff.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V193__added_column_joiningDate_for_staff.sql
deleted file mode 100644
index 53e2df3..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V193__added_column_joiningDate_for_staff.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-alter table m_staff
-add column joining_date date;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V194__added_recalculatedInterestComponent_for_interest_recalculation.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V194__added_recalculatedInterestComponent_for_interest_recalculation.sql
deleted file mode 100644
index ddb168f..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V194__added_recalculatedInterestComponent_for_interest_recalculation.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_repayment_schedule`
-    ADD COLUMN `recalculated_interest_component` tinyint NOT NULL DEFAULT '0';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V195__moved_rest_frequency_to_product_level.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V195__moved_rest_frequency_to_product_level.sql
deleted file mode 100644
index f14dfb4..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V195__moved_rest_frequency_to_product_level.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan_recalculation_details`
-    ADD COLUMN `rest_frequency_type_enum` SMALLINT NOT NULL AFTER `reschedule_strategy_enum`,
-    ADD COLUMN `rest_frequency_interval` SMALLINT NOT NULL DEFAULT '0' AFTER `rest_frequency_type_enum`,
-    ADD COLUMN `rest_freqency_date` DATE NULL DEFAULT NULL AFTER `rest_frequency_interval`;
-
-ALTER TABLE `m_loan_recalculation_details`
-    ADD COLUMN `rest_frequency_type_enum` SMALLINT NOT NULL AFTER `reschedule_strategy_enum`,
-    ADD COLUMN `rest_frequency_interval` SMALLINT NOT NULL DEFAULT '0' AFTER `rest_frequency_type_enum`,
-    ADD COLUMN `rest_freqency_date` DATE NULL DEFAULT NULL AFTER `rest_frequency_interval`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V196__added_loan_running_balance_to_transactions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V196__added_loan_running_balance_to_transactions.sql
deleted file mode 100644
index 50ce97a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V196__added_loan_running_balance_to_transactions.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_transaction`
-    ADD COLUMN `outstanding_loan_balance_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `overpayment_portion_derived`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V197__updated_loan_running_balance_of_transactions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V197__updated_loan_running_balance_of_transactions.sql
deleted file mode 100644
index 9861d81..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V197__updated_loan_running_balance_of_transactions.sql
+++ /dev/null
@@ -1,32 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_loan_transaction_temp` (
-    `id` BIGINT NOT NULL,
-    `loan_id` BIGINT NOT NULL,
-    `amount` DECIMAL(19,6) NOT NULL DEFAULT '0',
-    `transaction_date` DATE NOT NULL
-);
-
-INSERT INTO m_loan_transaction_temp(`id`,`loan_id`,`transaction_date`,`amount`) select lt.id, lt.loan_id,lt.transaction_date,if(lt.transaction_type_enum = 1 , IFNULL(lt.amount,0),IFNULL(-lt.principal_portion_derived,0)) from m_loan_transaction lt where lt.is_reversed=0;
-
-
-UPDATE m_loan_transaction lt SET lt.outstanding_loan_balance_derived = (select sum(ltt.amount) from m_loan_transaction_temp ltt where ((ltt.transaction_date = lt.transaction_date and ltt.id  <= lt.id) or ltt.transaction_date < lt.transaction_date) and ltt.loan_id = lt.loan_id) where lt.transaction_type_enum != 10 and lt.is_reversed = 0;
-
-DROP TABLE `m_loan_transaction_temp`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V198__loan_rescheduling_tables_and_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V198__loan_rescheduling_tables_and_permissions.sql
deleted file mode 100644
index ec18e3c..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V198__loan_rescheduling_tables_and_permissions.sql
+++ /dev/null
@@ -1,92 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-create table m_loan_reschedule_request (
-id BIGINT primary key auto_increment,
-loan_id BIGINT not null,
-status_enum SMALLINT not null,
-reschedule_from_installment SMALLINT not null comment 'Rescheduling will start from this installment',
-grace_on_principal SMALLINT null comment 'Number of installments that should be added with 0 principal amount',
-grace_on_interest SMALLINT null comment 'Number of installments that should be added with 0 interest rate',
-reschedule_from_date date not null comment 'Rescheduling will start from the installment with due date similar to this date.',
-extra_terms SMALLINT	comment 'Number of extra terms to be added to the schedule',
-interest_rate decimal(19,6)	null comment 'If provided, the interest rate for the unpaid installments will be recalculated',
-recalculate_interest tinyint null comment 'If set to 1, interest will be recalculated starting from the reschedule period.',
-adjusted_due_date date null comment 'New due date for the first rescheduled installment',
-reschedule_reason_cv_id INT null comment 'ID of code value of reason for rescheduling',
-reschedule_reason_comment varchar(500) null comment 'Text provided in addition to the reason code value',
-submitted_on_date date not null,
-submitted_by_user_id BIGINT not null,
-approved_on_date date null,
-approved_by_user_id BIGINT null,
-rejected_on_date date null,
-rejected_by_user_id BIGINT null,
-foreign key (loan_id) references m_loan(id),
-foreign key (reschedule_reason_cv_id) references m_code_value(id),
-foreign key (submitted_by_user_id) references m_appuser(id),
-foreign key (approved_by_user_id) references m_appuser(id),
-foreign key (rejected_by_user_id) references m_appuser(id)
-);
-
-create table m_loan_repayment_schedule_history (
- id BIGINT primary key auto_increment,
- loan_id BIGINT not null,
- loan_reschedule_request_id BIGINT null,
- fromdate date null,
- duedate date not null,
- installment SMALLINT not null,
- principal_amount decimal(19,6) null,
- principal_completed_derived decimal(19,6) null,
- principal_writtenoff_derived decimal(19,6) null,
- interest_amount decimal(19,6) null,
- interest_completed_derived decimal(19,6) null,
- interest_writtenoff_derived decimal(19,6) null,
- interest_waived_derived decimal(19,6) null,
- accrual_interest_derived decimal(19,6) null,
- fee_charges_amount decimal(19,6) null,
- fee_charges_completed_derived decimal(19,6) null,
- fee_charges_writtenoff_derived decimal(19,6) null,
- fee_charges_waived_derived decimal(19,6) null,
- accrual_fee_charges_derived decimal(19,6) null,
- penalty_charges_amount decimal(19,6) null,
- penalty_charges_completed_derived decimal(19,6) null,
- penalty_charges_writtenoff_derived decimal(19,6) null,
- penalty_charges_waived_derived decimal(19,6) null,
- accrual_penalty_charges_derived decimal(19,6) null,
- total_paid_in_advance_derived decimal(19,6) null,
- total_paid_late_derived decimal(19,6) null,
- completed_derived bit(1) not null,
- obligations_met_on_date date null,
- createdby_id BIGINT null,
- created_date datetime null,
- lastmodified_date datetime null,
- lastmodifiedby_id BIGINT null,
- foreign key (loan_id) references m_loan(id),
- foreign key (loan_reschedule_request_id) references m_loan_reschedule_request(id)
-);
-
-alter table m_loan add rescheduledon_userid BIGINT null after rescheduledon_date;
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) values ('loan_reschedule', 'READ_RESCHEDULELOAN', 'RESCHEDULELOAN', 'READ', '0');
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) values ('loan_reschedule', 'CREATE_RESCHEDULELOAN', 'RESCHEDULELOAN', 'CREATE', '0');
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) values ('loan_reschedule', 'REJECT_RESCHEDULELOAN', 'RESCHEDULELOAN', 'REJECT', '0');
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) values ('loan_reschedule', 'APPROVE_RESCHEDULELOAN', 'RESCHEDULELOAN', 'APPROVE', '0');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V199__removed_extra_columns_from_schedule_history.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V199__removed_extra_columns_from_schedule_history.sql
deleted file mode 100644
index 356e5fa..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V199__removed_extra_columns_from_schedule_history.sql
+++ /dev/null
@@ -1,39 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_repayment_schedule_history`
-    DROP COLUMN `principal_completed_derived`,
-    DROP COLUMN `principal_writtenoff_derived`,
-    DROP COLUMN `interest_completed_derived`,
-    DROP COLUMN `interest_writtenoff_derived`,
-    DROP COLUMN `interest_waived_derived`,
-    DROP COLUMN `accrual_interest_derived`,
-    DROP COLUMN `fee_charges_completed_derived`,
-    DROP COLUMN `fee_charges_writtenoff_derived`,
-    DROP COLUMN `fee_charges_waived_derived`,
-    DROP COLUMN `accrual_fee_charges_derived`,
-    DROP COLUMN `penalty_charges_completed_derived`,
-    DROP COLUMN `penalty_charges_writtenoff_derived`,
-    DROP COLUMN `penalty_charges_waived_derived`,
-    DROP COLUMN `accrual_penalty_charges_derived`,
-    DROP COLUMN `total_paid_in_advance_derived`,
-    DROP COLUMN `total_paid_late_derived`,
-    DROP COLUMN `completed_derived`,
-    DROP COLUMN `obligations_met_on_date`,
-    ADD COLUMN `version` INT NOT NULL;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V19__report_maintenance_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V19__report_maintenance_permissions.sql
deleted file mode 100644
index a0c5fb3..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V19__report_maintenance_permissions.sql
+++ /dev/null
@@ -1,33 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('report', 'READ_REPORT', 'REPORT', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('report', 'CREATE_REPORT', 'REPORT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('report', 'CREATE_REPORT_CHECKER', 'REPORT', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('report', 'UPDATE_REPORT', 'REPORT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('report', 'UPDATE_REPORT_CHECKER', 'REPORT', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('report', 'DELETE_REPORT', 'REPORT', 'DELETE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('report', 'DELETE_REPORT_CHECKER', 'REPORT', 'DELETE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V1__mifosplatform-core-ddl-latest.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V1__mifosplatform-core-ddl-latest.sql
deleted file mode 100644
index 11577be..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V1__mifosplatform-core-ddl-latest.sql
+++ /dev/null
@@ -1,965 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
--- drop tables in base-schema
-SET foreign_key_checks = 0;
-
--- drop accounting subsystem
-DROP TABLE IF EXISTS `acc_gl_account`;
-DROP TABLE IF EXISTS `acc_gl_closure`;
-DROP TABLE IF EXISTS `acc_gl_journal_entry`;
-DROP TABLE IF EXISTS `acc_product_mapping`;
-
--- drop portfolio subsystem
-DROP TABLE IF EXISTS `c_configuration`;
-DROP TABLE IF EXISTS `m_appuser`;
-DROP TABLE IF EXISTS `m_appuser_role`;
-DROP TABLE IF EXISTS `m_calendar`;
-DROP TABLE IF EXISTS `m_calendar_instance`;
-DROP TABLE IF EXISTS `m_charge`;
-DROP TABLE IF EXISTS `m_client`;
-DROP TABLE IF EXISTS `m_client_identifier`;
-DROP TABLE IF EXISTS `m_code`;
-DROP TABLE IF EXISTS `m_code_value`;
-DROP TABLE IF EXISTS `m_currency`;
-DROP TABLE IF EXISTS `m_deposit_account`;
-DROP TABLE IF EXISTS `m_deposit_account_transaction`;
-DROP TABLE IF EXISTS `m_document`;
-DROP TABLE IF EXISTS `m_fund`;
-DROP TABLE IF EXISTS `m_group`;
-DROP TABLE IF EXISTS `m_group_level`;
-DROP TABLE IF EXISTS `m_group_client`;
-DROP TABLE IF EXISTS `m_guarantor`;
-DROP TABLE IF EXISTS `m_loan`;
-DROP TABLE IF EXISTS `m_loan_charge`;
-DROP TABLE IF EXISTS `m_loan_arrears_aging`;
-DROP TABLE IF EXISTS `m_loan_collateral`;
-DROP TABLE IF EXISTS `m_loan_officer_assignment_history`;
-DROP TABLE IF EXISTS `m_loan_repayment_schedule`;
-DROP TABLE IF EXISTS `m_loan_transaction`;
-DROP TABLE IF EXISTS `m_note`;
-DROP TABLE IF EXISTS `m_office`;
-DROP TABLE IF EXISTS `m_office_transaction`;
-DROP TABLE IF EXISTS `m_organisation_currency`;
-DROP TABLE IF EXISTS `m_permission`;
-DROP TABLE IF EXISTS `m_portfolio_command_source`;
-DROP TABLE IF EXISTS `m_product_deposit`;
-DROP TABLE IF EXISTS `m_product_loan`;
-DROP TABLE IF EXISTS `m_product_loan_charge`;
-DROP TABLE IF EXISTS `m_role`;
-DROP TABLE IF EXISTS `m_role_permission`;
-DROP TABLE IF EXISTS `m_savings_account`;
-DROP TABLE IF EXISTS `m_savings_account_transaction`;
-DROP TABLE IF EXISTS `m_savings_product`;
-DROP TABLE IF EXISTS `m_staff`;
-DROP TABLE IF EXISTS `ref_loan_transaction_processing_strategy`;
-DROP TABLE IF EXISTS `x_registered_table`;
-
--- drop reporting related tables
-DROP TABLE IF EXISTS `r_enum_value`;
-DROP TABLE IF EXISTS `rpt_sequence`;
-DROP TABLE IF EXISTS `stretchy_parameter`;
-DROP TABLE IF EXISTS `stretchy_report`;
-DROP TABLE IF EXISTS `stretchy_report_parameter`;
-
-SET foreign_key_checks = 1;
-
--- DDL for reference/lookup tables
-CREATE TABLE `m_currency` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `code` varchar(3) NOT NULL,
-  `decimal_places` SMALLINT NOT NULL,
-  `display_symbol` varchar(10) DEFAULT NULL,
-  `name` varchar(50) NOT NULL,
-  `internationalized_name_code` varchar(50) NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `code` (`code`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_organisation_currency` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `code` varchar(3) NOT NULL,
-  `decimal_places` SMALLINT NOT NULL,
-  `name` varchar(50) NOT NULL,
-  `display_symbol` varchar(10) DEFAULT NULL,
-  `internationalized_name_code` varchar(50) NOT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `ref_loan_transaction_processing_strategy` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `code` varchar(100) DEFAULT NULL,
-  `name` varchar(255) DEFAULT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `ltp_strategy_code` (`code`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `c_configuration` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(50) DEFAULT NULL,
-  `enabled` tinyint NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_code` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  `code_name` varchar(100) DEFAULT NULL,
-  `is_system_defined` tinyint NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `code_name` (`code_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_code_value` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  `code_id` INT NOT NULL,
-  `code_value` varchar(100) DEFAULT NULL,
-  `order_position` INT NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `code_value` (`code_id`,`code_value`),
-  KEY `FKCFCEA42640BE071Z` (`code_id`),
-  CONSTRAINT `FKCFCEA42640BE071Z` FOREIGN KEY (`code_id`) REFERENCES `m_code` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_document` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  `parent_entity_type` varchar(50) NOT NULL,
-  `parent_entity_id` INT NOT NULL DEFAULT '0',
-  `name` varchar(250) NOT NULL,
-  `file_name` varchar(250) NOT NULL,
-  `size` INT DEFAULT '0',
-  `type` varchar(50) DEFAULT NULL,
-  `description` varchar(1000) DEFAULT NULL,
-  `location` varchar(500) NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-/*not a major table - just intended for database reporting use for enums and values that would be hidden in java*/
-CREATE TABLE `r_enum_value` (
-  `enum_name` varchar(100) NOT NULL,
-  `enum_id` INT NOT NULL,
-  `enum_message_property` varchar(100) NOT NULL,
-  `enum_value` varchar(100) NOT NULL,
-  PRIMARY KEY (`enum_name`,`enum_id`),
-  UNIQUE KEY `enum_message_property` (`enum_name`,`enum_message_property`),
-  UNIQUE KEY `enum_value` (`enum_name`,`enum_value`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-/* used to link MySql tables to Mifos X application tables for additional data needs */
-CREATE TABLE `x_registered_table` (
-  `registered_table_name` varchar(50) NOT NULL,
-  `application_table_name` varchar(50) NOT NULL,
-  PRIMARY KEY (`registered_table_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE IF NOT EXISTS `m_calendar` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `title` varchar(50) NOT NULL,
-  `description` varchar(100) DEFAULT NULL,
-  `location` varchar(50) DEFAULT NULL,
-  `start_date` date NOT NULL,
-  `end_date` date DEFAULT NULL,
-  `duration` SMALLINT DEFAULT NULL,
-  `calendar_type_enum` SMALLINT NOT NULL,
-  `repeating` tinyint NOT NULL DEFAULT '0',
-  `recurrence` varchar(100) DEFAULT NULL,
-  `remind_by_enum` SMALLINT DEFAULT NULL,
-  `first_reminder` smallint DEFAULT NULL,
-  `second_reminder` smallint DEFAULT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE IF NOT EXISTS `m_calendar_instance` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `calendar_id` BIGINT NOT NULL,
-  `entity_id` BIGINT NOT NULL,
-  `entity_type_enum` SMALLINT NOT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FK_m_calendar_m_calendar_instance` (`calendar_id`),
-  CONSTRAINT `FK_m_calendar_m_calendar_instance` FOREIGN KEY (`calendar_id`) REFERENCES `m_calendar` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- ================= end of reference/lookup tables =============
-
--- DDL for office related tables
-CREATE TABLE `m_office` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `parent_id` BIGINT DEFAULT NULL,
-  `hierarchy` varchar(100) DEFAULT NULL,
-  `external_id` varchar(100) DEFAULT NULL,
-  `name` varchar(50) NOT NULL,
-  `opening_date` date NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `name_org` (`name`),
-  UNIQUE KEY `externalid_org` (`external_id`),
-  KEY `FK2291C477E2551DCC` (`parent_id`),
-  CONSTRAINT `FK2291C477E2551DCC` FOREIGN KEY (`parent_id`) REFERENCES `m_office` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_office_transaction` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `from_office_id` BIGINT DEFAULT NULL,
-  `to_office_id` BIGINT DEFAULT NULL,
-  `currency_code` varchar(3) NOT NULL,
-  `currency_digits` INT NOT NULL,
-  `transaction_amount` decimal(19,6) NOT NULL,
-  `transaction_date` date NOT NULL,
-  `description` varchar(100) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FK1E37728B93C6C1B6` (`to_office_id`),
-  KEY `FK1E37728B783C5C25` (`from_office_id`),
-  CONSTRAINT `FK1E37728B783C5C25` FOREIGN KEY (`from_office_id`) REFERENCES `m_office` (`id`),
-  CONSTRAINT `FK1E37728B93C6C1B6` FOREIGN KEY (`to_office_id`) REFERENCES `m_office` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- ============ end of office related tables ==========
-
--- DDL for admin tables
-CREATE TABLE `m_permission` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `grouping` varchar(45) DEFAULT NULL,
-  `code` varchar(100) NOT NULL,
-  `entity_name` varchar(100) DEFAULT NULL,
-  `action_name` varchar(100) DEFAULT NULL,
-  `can_maker_checker` tinyint NOT NULL DEFAULT '1',
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `code` (`code`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_role` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(100) NOT NULL,
-  `description` varchar(500) NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `unq_name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_role_permission` (
-  `role_id` BIGINT NOT NULL,
-  `permission_id` BIGINT NOT NULL,
-  PRIMARY KEY (`role_id`,`permission_id`),
-  KEY `FK8DEDB04815CEC7AB` (`role_id`),
-  KEY `FK8DEDB048103B544B` (`permission_id`),
-  CONSTRAINT `FK8DEDB048103B544B` FOREIGN KEY (`permission_id`) REFERENCES `m_permission` (`id`),
-  CONSTRAINT `FK8DEDB04815CEC7AB` FOREIGN KEY (`role_id`) REFERENCES `m_role` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_appuser` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `is_deleted` tinyint NOT NULL DEFAULT '0',
-  `office_id` BIGINT DEFAULT NULL,
-  `username` varchar(100) NOT NULL,
-  `firstname` varchar(100) NOT NULL,
-  `lastname` varchar(100) NOT NULL,
-  `password` varchar(255) NOT NULL,
-  `email` varchar(100) NOT NULL,
-  `firsttime_login_remaining` bit(1) NOT NULL,
-  `nonexpired` bit(1) NOT NULL,
-  `nonlocked` bit(1) NOT NULL,
-  `nonexpired_credentials` bit(1) NOT NULL,
-  `enabled` bit(1) NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `username_org` (`username`),
-  KEY `FKB3D587CE0DD567A` (`office_id`),
-  CONSTRAINT `FKB3D587CE0DD567A` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_appuser_role` (
-  `appuser_id` BIGINT NOT NULL,
-  `role_id` BIGINT NOT NULL,
-  PRIMARY KEY (`appuser_id`,`role_id`),
-  KEY `FK7662CE59B4100309` (`appuser_id`),
-  KEY `FK7662CE5915CEC7AB` (`role_id`),
-  CONSTRAINT `FK7662CE5915CEC7AB` FOREIGN KEY (`role_id`) REFERENCES `m_role` (`id`),
-  CONSTRAINT `FK7662CE59B4100309` FOREIGN KEY (`appuser_id`) REFERENCES `m_appuser` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- ================ end of user admin tables ===============
-
--- DDL for organisation wide related concepts
-CREATE TABLE `m_portfolio_command_source` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `action_name` varchar(50) NOT NULL,
-  `entity_name` varchar(50) NOT NULL,
-  `office_id` BIGINT DEFAULT NULL,
-  `group_id` BIGINT DEFAULT NULL,
-  `client_id` BIGINT DEFAULT NULL,
-  `loan_id` BIGINT DEFAULT NULL,
-  `savings_account_id` BIGINT DEFAULT NULL,
-  `api_get_url` varchar(100) NOT NULL,
-  `resource_id` BIGINT DEFAULT NULL,
-  `subresource_id` BIGINT DEFAULT NULL,
-  `command_as_json` text NOT NULL,
-  `maker_id` BIGINT NOT NULL,
-  `made_on_date` datetime NOT NULL,
-  `checker_id` BIGINT DEFAULT NULL,
-  `checked_on_date` datetime DEFAULT NULL,
-  `processing_result_enum` SMALLINT NOT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FK_m_maker_m_appuser` (`maker_id`),
-  KEY `FK_m_checker_m_appuser` (`checker_id`),
-  KEY `action_name` (`action_name`),
-  KEY `entity_name` (`entity_name`,`resource_id`),
-  KEY `made_on_date` (`made_on_date`),
-  KEY `checked_on_date` (`checked_on_date`),
-  KEY `processing_result_enum` (`processing_result_enum`),
-  KEY `office_id` (`office_id`),
-  KEY `group_id` (`office_id`),
-  KEY `client_id` (`office_id`),
-  KEY `loan_id` (`office_id`),
-  CONSTRAINT `FK_m_checker_m_appuser` FOREIGN KEY (`checker_id`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_m_maker_m_appuser` FOREIGN KEY (`maker_id`) REFERENCES `m_appuser` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_charge` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(100) DEFAULT NULL,
-  `currency_code` varchar(3) NOT NULL,
-  `charge_applies_to_enum` SMALLINT NOT NULL,
-  `charge_time_enum` SMALLINT NOT NULL,
-  `charge_calculation_enum` SMALLINT NOT NULL,
-  `amount` decimal(19,6) NOT NULL,
-  `is_penalty` tinyint NOT NULL DEFAULT '0',
-  `is_active` tinyint NOT NULL,
-  `is_deleted` tinyint NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_fund` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(255) DEFAULT NULL,
-  `external_id` varchar(100) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `fund_name_org` (`name`),
-  UNIQUE KEY `fund_externalid_org` (`external_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_staff` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `is_loan_officer` tinyint NOT NULL DEFAULT '0',
-  `office_id` BIGINT DEFAULT NULL,
-  `firstname` varchar(50) DEFAULT NULL,
-  `lastname` varchar(50) DEFAULT NULL,
-  `display_name` varchar(100) NOT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `display_name` (`display_name`),
-  KEY `FK_m_staff_m_office` (`office_id`),
-  CONSTRAINT `FK_m_staff_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- ============ end of organisation wide related tables ===========
-
--- DDL client/group related tables
-CREATE TABLE `m_group_level` (
-`id` INT NOT NULL AUTO_INCREMENT,
-`parent_id` INT NULL DEFAULT NULL,
-`super_parent` tinyint NOT NULL,
-`level_name` VARCHAR(100) NOT NULL,
-`recursable` tinyint NOT NULL,
-`can_have_clients` tinyint NOT NULL,
-PRIMARY KEY (`id`),
-INDEX `Parent_levelId_reference` (`parent_id`),
-CONSTRAINT `Parent_levelId_reference` FOREIGN KEY (`parent_id`) REFERENCES `m_group_level` (`id`)
-)ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_group` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `office_id` BIGINT NOT NULL,
-  `staff_id` BIGINT DEFAULT NULL,
-  `parent_id` BIGINT NULL DEFAULT NULL,
-  `level_Id` INT NOT NULL,
-  `hierarchy` VARCHAR(100) NULL DEFAULT NULL,
-  `name` varchar(100) NOT NULL,
-  `external_id` varchar(100) DEFAULT NULL,
-  `is_deleted` tinyint NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `name` (`name`, `level_id`),
-  UNIQUE KEY `external_id` (`external_id`, `level_Id`),
-  KEY `office_id` (`office_id`),
-  KEY `staff_id` (`staff_id`),
-  CONSTRAINT `m_group_ibfk_1` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`),
-  CONSTRAINT `Parent_Id_reference` FOREIGN KEY (`parent_id`) REFERENCES `m_group` (`id`),
-  CONSTRAINT `FK_m_group_level` FOREIGN KEY (`level_Id`) REFERENCES `m_group_level` (`id`),
-  CONSTRAINT `FK_m_group_m_staff` FOREIGN KEY (`staff_id`) REFERENCES `m_staff` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_client` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `account_no` varchar(20) NOT NULL,
-  `office_id` BIGINT NOT NULL,
-  `external_id` varchar(100) DEFAULT NULL,
-  `firstname` varchar(50) DEFAULT NULL,
-  `middlename` varchar(50) DEFAULT NULL,
-  `lastname` varchar(50) DEFAULT NULL,
-  `fullname` varchar(100) DEFAULT NULL,
-  `display_name` varchar(100) NOT NULL,
-  `image_key` varchar(500) DEFAULT NULL,
-  `joined_date` date DEFAULT NULL,
-  `is_deleted` tinyint NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `account_no_UNIQUE` (`account_no`),
-  UNIQUE KEY `external_id` (`external_id`),
-  KEY `FKCE00CAB3E0DD567A` (`office_id`),
-  CONSTRAINT `FKCE00CAB3E0DD567A` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_client_identifier` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `client_id` BIGINT NOT NULL,
-  `document_type_id` INT NOT NULL,
-  `document_key` varchar(50) NOT NULL,
-  `description` varchar(500) DEFAULT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `unique_identifier_key` (`document_type_id`,`document_key`),
-  UNIQUE KEY `unique_client_identifier` (`client_id`,`document_type_id`),
-  KEY `FK_m_client_document_m_client` (`client_id`),
-  KEY `FK_m_client_document_m_code_value` (`document_type_id`),
-  CONSTRAINT `FK_m_client_document_m_client` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
-  CONSTRAINT `FK_m_client_document_m_code_value` FOREIGN KEY (`document_type_id`) REFERENCES `m_code_value` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_group_client` (
-  `group_id` BIGINT NOT NULL,
-  `client_id` BIGINT NOT NULL,
-  PRIMARY KEY (`group_id`,`client_id`),
-  KEY `client_id` (`client_id`),
-  CONSTRAINT `m_group_client_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `m_group` (`id`),
-  CONSTRAINT `m_group_client_ibfk_2` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- ==== end of client/group related tables ==========
-
--- DDL for loan and loan related tables
-CREATE TABLE `m_product_loan` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `currency_code` varchar(3) NOT NULL,
-  `currency_digits` SMALLINT NOT NULL,
-  `principal_amount` decimal(19,6) NOT NULL,
-  `arrearstolerance_amount` decimal(19,6) DEFAULT NULL,
-  `name` varchar(100) NOT NULL,
-  `description` varchar(500) DEFAULT NULL,
-  `fund_id` BIGINT DEFAULT NULL,
-  `nominal_interest_rate_per_period` decimal(19,6) NOT NULL,
-  `interest_period_frequency_enum` SMALLINT NOT NULL,
-  `annual_nominal_interest_rate` decimal(19,6) NOT NULL,
-  `interest_method_enum` SMALLINT NOT NULL,
-  `interest_calculated_in_period_enum` SMALLINT NOT NULL DEFAULT '1',
-  `repay_every` SMALLINT NOT NULL,
-  `repayment_period_frequency_enum` SMALLINT NOT NULL,
-  `number_of_repayments` SMALLINT NOT NULL,
-  `amortization_method_enum` SMALLINT NOT NULL,
-  `accounting_type` SMALLINT NOT NULL,
-  `loan_transaction_strategy_id` BIGINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `unq_name` (`name`),
-  KEY `FKA6A8A7D77240145` (`fund_id`),
-  KEY `FK_ltp_strategy` (`loan_transaction_strategy_id`),
-  CONSTRAINT `FKA6A8A7D77240145` FOREIGN KEY (`fund_id`) REFERENCES `m_fund` (`id`),
-  CONSTRAINT `FK_ltp_strategy` FOREIGN KEY (`loan_transaction_strategy_id`) REFERENCES `ref_loan_transaction_processing_strategy` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_product_loan_charge` (
-  `product_loan_id` BIGINT NOT NULL,
-  `charge_id` BIGINT NOT NULL,
-  PRIMARY KEY (`product_loan_id`,`charge_id`),
-  KEY `charge_id` (`charge_id`),
-  CONSTRAINT `m_product_loan_charge_ibfk_1` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
-  CONSTRAINT `m_product_loan_charge_ibfk_2` FOREIGN KEY (`product_loan_id`) REFERENCES `m_product_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_loan` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `account_no` varchar(20) NOT NULL,
-  `external_id` varchar(100) DEFAULT NULL,
-  `client_id` BIGINT DEFAULT NULL,
-  `group_id` BIGINT DEFAULT NULL,
-  `product_id` BIGINT DEFAULT NULL,
-  `fund_id` BIGINT DEFAULT NULL,
-  `loan_officer_id` BIGINT DEFAULT NULL,
-  `loanpurpose_cv_id` INT DEFAULT NULL,
-  `loan_status_id` SMALLINT NOT NULL,
-  `currency_code` varchar(3) NOT NULL,
-  `currency_digits` SMALLINT NOT NULL,
-  `principal_amount` decimal(19,6) NOT NULL,
-  `arrearstolerance_amount` decimal(19,6) DEFAULT NULL,
-  `nominal_interest_rate_per_period` decimal(19,6) NOT NULL,
-  `interest_period_frequency_enum` SMALLINT NOT NULL,
-  `annual_nominal_interest_rate` decimal(19,6) NOT NULL,
-  `interest_method_enum` SMALLINT NOT NULL,
-  `interest_calculated_in_period_enum` SMALLINT NOT NULL DEFAULT '1',
-  `term_frequency` SMALLINT NOT NULL DEFAULT '0',
-  `term_period_frequency_enum` SMALLINT NOT NULL DEFAULT '2',
-  `repay_every` SMALLINT NOT NULL,
-  `repayment_period_frequency_enum` SMALLINT NOT NULL,
-  `number_of_repayments` SMALLINT NOT NULL,
-  `amortization_method_enum` SMALLINT NOT NULL,
-  `submittedon_date` date DEFAULT NULL,
-  `submittedon_userid` BIGINT DEFAULT NULL,
-  `approvedon_date` date DEFAULT NULL,
-  `approvedon_userid` BIGINT DEFAULT NULL,
-  `expected_disbursedon_date` date DEFAULT NULL,
-  `expected_firstrepaymenton_date` date DEFAULT NULL,
-  `interest_calculated_from_date` date DEFAULT NULL,
-  `disbursedon_date` date DEFAULT NULL,
-  `disbursedon_userid` BIGINT DEFAULT NULL,
-  `expected_maturedon_date` date DEFAULT NULL,
-  `maturedon_date` date DEFAULT NULL,
-  `closedon_date` date DEFAULT NULL,
-  `closedon_userid` BIGINT DEFAULT NULL,
-  `total_charges_due_at_disbursement_derived` decimal(19,6) DEFAULT NULL,
-  `principal_disbursed_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `principal_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `principal_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `principal_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `interest_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `interest_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `interest_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `interest_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `interest_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `fee_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `fee_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `fee_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `fee_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `fee_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `penalty_charges_charged_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `penalty_charges_repaid_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `penalty_charges_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `penalty_charges_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `penalty_charges_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_expected_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_repayment_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_expected_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_costofloan_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_waived_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_writtenoff_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `rejectedon_date` date DEFAULT NULL,
-  `rejectedon_userid` BIGINT DEFAULT NULL,
-  `rescheduledon_date` date DEFAULT NULL,
-  `withdrawnon_date` date DEFAULT NULL,
-  `withdrawnon_userid` BIGINT DEFAULT NULL,
-  `writtenoffon_date` date DEFAULT NULL,
-  `loan_transaction_strategy_id` BIGINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `loan_account_no_UNIQUE` (`account_no`),
-  UNIQUE KEY `loan_externalid_UNIQUE` (`external_id`),
-  KEY `FKB6F935D87179A0CB` (`client_id`),
-  KEY `FKB6F935D8C8D4B434` (`product_id`),
-  KEY `FK7C885877240145` (`fund_id`),
-  KEY `FK_loan_ltp_strategy` (`loan_transaction_strategy_id`),
-  KEY `FK_m_loan_m_staff` (`loan_officer_id`),
-  KEY `group_id` (`group_id`),
-  KEY `FK_m_loanpurpose_codevalue` (`loanpurpose_cv_id`),
-  KEY `FK_submittedon_userid` (`submittedon_userid`),
-  KEY `FK_approvedon_userid` (`approvedon_userid`),
-  KEY `FK_rejectedon_userid` (`rejectedon_userid`),
-  KEY `FK_withdrawnon_userid` (`withdrawnon_userid`),
-  KEY `FK_disbursedon_userid` (`disbursedon_userid`),
-  KEY `FK_closedon_userid` (`closedon_userid`),
-  CONSTRAINT `FK7C885877240145` FOREIGN KEY (`fund_id`) REFERENCES `m_fund` (`id`),
-  CONSTRAINT `FKB6F935D87179A0CB` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
-  CONSTRAINT `FKB6F935D8C8D4B434` FOREIGN KEY (`product_id`) REFERENCES `m_product_loan` (`id`),
-  CONSTRAINT `FK_approvedon_userid` FOREIGN KEY (`approvedon_userid`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_closedon_userid` FOREIGN KEY (`closedon_userid`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_disbursedon_userid` FOREIGN KEY (`disbursedon_userid`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_loan_ltp_strategy` FOREIGN KEY (`loan_transaction_strategy_id`) REFERENCES `ref_loan_transaction_processing_strategy` (`id`),
-  CONSTRAINT `FK_m_loanpurpose_codevalue` FOREIGN KEY (`loanpurpose_cv_id`) REFERENCES `m_code_value` (`id`),
-  CONSTRAINT `FK_m_loan_m_staff` FOREIGN KEY (`loan_officer_id`) REFERENCES `m_staff` (`id`),
-  CONSTRAINT `FK_rejectedon_userid` FOREIGN KEY (`rejectedon_userid`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_submittedon_userid` FOREIGN KEY (`submittedon_userid`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_withdrawnon_userid` FOREIGN KEY (`withdrawnon_userid`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `m_loan_ibfk_1` FOREIGN KEY (`group_id`) REFERENCES `m_group` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_loan_arrears_aging` (
-  `loan_id` BIGINT NOT NULL AUTO_INCREMENT,
-  `principal_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `interest_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `fee_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `penalty_charges_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `total_overdue_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `overdue_since_date_derived` date DEFAULT NULL,
-  PRIMARY KEY (`loan_id`),
-  CONSTRAINT `m_loan_arrears_aging_ibfk_1` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_guarantor` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_id` BIGINT NOT NULL,
-        `client_reln_cv_id` INT DEFAULT NULL,
-    `type_enum` SMALLINT NOT NULL,
-    `entity_id` BIGINT NULL DEFAULT NULL,
-    `firstname` VARCHAR(50) NULL DEFAULT NULL,
-    `lastname` VARCHAR(50) NULL DEFAULT NULL,
-    `dob` DATE NULL DEFAULT NULL,
-    `address_line_1` VARCHAR(500) NULL DEFAULT NULL,
-    `address_line_2` VARCHAR(500) NULL DEFAULT NULL,
-    `city` VARCHAR(50) NULL DEFAULT NULL,
-    `state` VARCHAR(50) NULL DEFAULT NULL,
-    `country` VARCHAR(50) NULL DEFAULT NULL,
-    `zip` VARCHAR(20) NULL DEFAULT NULL,
-    `house_phone_number` VARCHAR(20) NULL DEFAULT NULL,
-    `mobile_number` VARCHAR(20) NULL DEFAULT NULL,
-    `comment` VARCHAR(500) NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `FK_m_guarantor_m_loan` (`loan_id`),
-        CONSTRAINT `FK_m_guarantor_m_code_value` FOREIGN KEY (`client_reln_cv_id`) REFERENCES `m_code_value` (`id`),
-    CONSTRAINT `FK_m_guarantor_m_loan` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_loan_charge` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `loan_id` BIGINT NOT NULL,
-  `charge_id` BIGINT NOT NULL,
-  `is_penalty` tinyint NOT NULL DEFAULT '0',
-  `charge_time_enum` SMALLINT NOT NULL,
-  `due_for_collection_as_of_date` date DEFAULT NULL,
-  `charge_calculation_enum` SMALLINT NOT NULL,
-  `calculation_percentage` decimal(19,6) DEFAULT NULL,
-  `calculation_on_amount` decimal(19,6) DEFAULT NULL,
-  `amount` decimal(19,6) NOT NULL,
-  `amount_paid_derived` decimal(19,6) DEFAULT NULL,
-  `amount_waived_derived` decimal(19,6) DEFAULT NULL,
-  `amount_writtenoff_derived` decimal(19,6) DEFAULT NULL,
-  `amount_outstanding_derived` decimal(19,6) NOT NULL DEFAULT '0.000000',
-  `is_paid_derived` tinyint NOT NULL DEFAULT '0',
-  `waived` tinyint NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`),
-  KEY `charge_id` (`charge_id`),
-  KEY `m_loan_charge_ibfk_2` (`loan_id`),
-  CONSTRAINT `m_loan_charge_ibfk_1` FOREIGN KEY (`charge_id`) REFERENCES `m_charge` (`id`),
-  CONSTRAINT `m_loan_charge_ibfk_2` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_loan_collateral` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `loan_id` BIGINT NOT NULL,
-  `type_cv_id` INT NOT NULL,
-  `value` DECIMAL(19,6) DEFAULT NULL,
-  `description` varchar(500) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FK_collateral_m_loan` (`loan_id`),
-  KEY `FK_collateral_code_value` (`type_cv_id`),
-  CONSTRAINT `FK_collateral_m_loan` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`),
-  CONSTRAINT `FK_collateral_code_value` FOREIGN KEY (`type_cv_id`) REFERENCES `m_code_value` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_loan_officer_assignment_history` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `loan_id` BIGINT NOT NULL,
-  `loan_officer_id` BIGINT DEFAULT NULL,
-  `start_date` date NOT NULL,
-  `end_date` date DEFAULT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `fk_m_loan_officer_assignment_history_0001` (`loan_id`),
-  KEY `fk_m_loan_officer_assignment_history_0002` (`loan_officer_id`),
-  CONSTRAINT `fk_m_loan_officer_assignment_history_0001` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`),
-  CONSTRAINT `fk_m_loan_officer_assignment_history_0002` FOREIGN KEY (`loan_officer_id`) REFERENCES `m_staff` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_loan_repayment_schedule` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `loan_id` BIGINT NOT NULL,
-  `fromdate` date DEFAULT NULL,
-  `duedate` date NOT NULL,
-  `installment` SMALLINT NOT NULL,
-  `principal_amount` decimal(19,6) DEFAULT NULL,
-  `principal_completed_derived` decimal(19,6) DEFAULT NULL,
-  `principal_writtenoff_derived` decimal(19,6) DEFAULT NULL,
-  `interest_amount` decimal(19,6) DEFAULT NULL,
-  `interest_completed_derived` decimal(19,6) DEFAULT NULL,
-  `interest_writtenoff_derived` decimal(19,6) DEFAULT NULL,
-  `fee_charges_amount` decimal(19,6) DEFAULT NULL,
-  `fee_charges_completed_derived` decimal(19,6) DEFAULT NULL,
-  `fee_charges_writtenoff_derived` decimal(19,6) DEFAULT NULL,
-  `fee_charges_waived_derived` decimal(19,6) DEFAULT NULL,
-  `penalty_charges_amount` decimal(19,6) DEFAULT NULL,
-  `penalty_charges_completed_derived` decimal(19,6) DEFAULT NULL,
-  `penalty_charges_writtenoff_derived` decimal(19,6) DEFAULT NULL,
-  `penalty_charges_waived_derived` decimal(19,6) DEFAULT NULL,
-  `completed_derived` bit(1) NOT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  `interest_waived_derived` decimal(19,6) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FK488B92AA40BE0710` (`loan_id`),
-  CONSTRAINT `FK488B92AA40BE0710` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_loan_transaction` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `loan_id` BIGINT NOT NULL,
-  `is_reversed` tinyint NOT NULL,
-  `transaction_type_enum` SMALLINT NOT NULL,
-  `transaction_date` date NOT NULL,
-  `amount` decimal(19,6) NOT NULL,
-  `principal_portion_derived` decimal(19,6) DEFAULT NULL,
-  `interest_portion_derived` decimal(19,6) DEFAULT NULL,
-  `fee_charges_portion_derived` decimal(19,6) DEFAULT NULL,
-  `penalty_charges_portion_derived` decimal(19,6) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKCFCEA42640BE0710` (`loan_id`),
-  CONSTRAINT `FKCFCEA42640BE0710` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
--- ======== end of loan related tables ==========
-
-CREATE TABLE `m_savings_product` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(100) NOT NULL,
-  `description` varchar(500) NOT NULL,
-  `currency_code` varchar(3) NOT NULL,
-  `currency_digits` SMALLINT NOT NULL,
-  `nominal_interest_rate_per_period` decimal(19,6) NOT NULL,
-  `nominal_interest_rate_period_frequency_enum` SMALLINT NOT NULL,
-  `interest_period_enum` SMALLINT NOT NULL,
-  `interest_calculation_type_enum` SMALLINT NOT NULL,
-  `interest_calculation_days_in_year_type_enum` SMALLINT NOT NULL,
-  `min_required_opening_balance` decimal(19,6) DEFAULT NULL,
-  `lockin_period_frequency` decimal(19,6) DEFAULT NULL,
-  `lockin_period_frequency_enum` SMALLINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `sp_unq_name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_savings_account` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `account_no` varchar(20) NOT NULL,
-  `external_id` varchar(100) DEFAULT NULL,
-  `client_id` BIGINT DEFAULT NULL,
-  `group_id` BIGINT DEFAULT NULL,
-  `product_id` BIGINT DEFAULT NULL,
-  `status_enum` SMALLINT NOT NULL DEFAULT 300,
-  `activation_date` DATE DEFAULT NULL,
-  `currency_code` varchar(3) NOT NULL,
-  `currency_digits` SMALLINT NOT NULL,
-  `nominal_interest_rate_per_period` decimal(19,6) NOT NULL,
-  `nominal_interest_rate_period_frequency_enum` SMALLINT NOT NULL,
-  `annual_nominal_interest_rate` decimal(19,6) NOT NULL,
-  `interest_period_enum` SMALLINT NOT NULL,
-  `interest_calculation_type_enum` SMALLINT NOT NULL,
-  `interest_calculation_days_in_year_type_enum` SMALLINT NOT NULL,
-  `min_required_opening_balance` decimal(19,6) DEFAULT NULL,
-  `lockin_period_frequency` decimal(19,6) DEFAULT NULL,
-  `lockin_period_frequency_enum` SMALLINT DEFAULT NULL,
-  `lockedin_until_date_derived` DATE DEFAULT NULL,
-  `total_deposits_derived` decimal(19,6) DEFAULT NULL,
-  `total_withdrawals_derived` decimal(19,6) DEFAULT NULL,
-  `total_interest_earned_derived` decimal(19,6) DEFAULT NULL,
-  `total_interest_posted_derived` decimal(19,6) DEFAULT NULL,
-  `account_balance_derived` decimal(19,6) NOT NULL DEFAULT 0,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `sa_account_no_UNIQUE` (`account_no`),
-  UNIQUE KEY `sa_externalid_UNIQUE` (`external_id`),
-  KEY `FKSA00000000000001` (`client_id`),
-  KEY `FKSA00000000000002` (`group_id`),
-  KEY `FKSA00000000000003` (`product_id`),
-  CONSTRAINT `FKSA00000000000001` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
-  CONSTRAINT `FKSA00000000000002` FOREIGN KEY (`group_id`) REFERENCES `m_group` (`id`),
-  CONSTRAINT `FKSA00000000000003` FOREIGN KEY (`product_id`) REFERENCES `m_savings_product` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `m_savings_account_transaction` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `savings_account_id` BIGINT NOT NULL,
-  `transaction_type_enum` SMALLINT NOT NULL,
-  `transaction_date` date NOT NULL,
-  `amount` decimal(19,6) NOT NULL,
-  `is_reversed` tinyint NOT NULL,
-  `running_balance_derived` DECIMAL(19,6) NULL,
-  `balance_number_of_days_derived` INT NULL,
-  `balance_end_date_derived` DATE NULL,
-  `cumulative_balance_derived` DECIMAL(19,6) NULL,
-  PRIMARY KEY (`id`),
-  KEY `FKSAT0000000001` (`savings_account_id`),
-  CONSTRAINT `FKSAT0000000001` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- end of savings account related tables
-
--- DDL for notes associated with all client/group and financial accounts
-CREATE TABLE `m_note` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `client_id` BIGINT DEFAULT NULL,
-  `group_id` BIGINT DEFAULT NULL,
-  `loan_id` BIGINT DEFAULT NULL,
-  `loan_transaction_id` BIGINT DEFAULT NULL,
-  `note_type_enum` SMALLINT NOT NULL,
-  `note` varchar(1000) DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FK7C9708924D26803` (`loan_transaction_id`),
-  KEY `FK7C97089541F0A56` (`createdby_id`),
-  KEY `FK7C970897179A0CB` (`client_id`),
-  KEY `FK_m_note_m_group` (`group_id`),
-  KEY `FK7C970898F889C3F` (`lastmodifiedby_id`),
-  KEY `FK7C9708940BE0710` (`loan_id`),
-  CONSTRAINT `FK7C9708924D26803` FOREIGN KEY (`loan_transaction_id`) REFERENCES `m_loan_transaction` (`id`),
-  CONSTRAINT `FK7C9708940BE0710` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`),
-  CONSTRAINT `FK7C97089541F0A56` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK7C970897179A0CB` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
-  CONSTRAINT `FK_m_note_m_group` FOREIGN KEY (`group_id`) REFERENCES `m_group` (`id`),
-  CONSTRAINT `FK7C970898F889C3F` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
--- DDL for accounting sub system related tables
-CREATE TABLE `acc_gl_account` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `name` varchar(45) NOT NULL,
-  `parent_id` BIGINT DEFAULT NULL,
-  `gl_code` varchar(45) NOT NULL,
-  `disabled` tinyint NOT NULL DEFAULT '0',
-  `manual_journal_entries_allowed` tinyint NOT NULL DEFAULT '1',
-  `account_usage` tinyint NOT NULL DEFAULT '2',
-  `classification_enum` SMALLINT NOT NULL,
-  `description` varchar(500) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `acc_gl_code` (`gl_code`),
-  KEY `FK_ACC_0000000001` (`parent_id`),
-  CONSTRAINT `FK_ACC_0000000001` FOREIGN KEY (`parent_id`) REFERENCES `acc_gl_account` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `acc_gl_closure` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `office_id` BIGINT NOT NULL,
-  `closing_date` date NOT NULL,
-  `is_deleted` INT NOT NULL DEFAULT '0',
-  `createdby_id` BIGINT DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  `comments` varchar(500) DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  UNIQUE KEY `office_id_closing_date` (`office_id`,`closing_date`),
-  KEY `FK_acc_gl_closure_m_office` (`office_id`),
-  KEY `FK_acc_gl_closure_m_appuser` (`createdby_id`),
-  KEY `FK_acc_gl_closure_m_appuser_2` (`lastmodifiedby_id`),
-  CONSTRAINT `FK_acc_gl_closure_m_appuser` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_acc_gl_closure_m_appuser_2` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_acc_gl_closure_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `acc_gl_journal_entry` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `account_id` BIGINT NOT NULL,
-  `office_id` BIGINT NOT NULL,
-  `reversal_id` BIGINT DEFAULT NULL,
-  `transaction_id` varchar(50) NOT NULL,
-  `reversed` tinyint NOT NULL DEFAULT '0',
-  `manual_entry` tinyint NOT NULL DEFAULT '0',
-  `entry_date` date NOT NULL,
-  `type_enum` SMALLINT NOT NULL,
-  `amount` decimal(19,6) NOT NULL,
-  `description` varchar(500) DEFAULT NULL,
-  `entity_type_enum` SMALLINT DEFAULT NULL,
-  `entity_id` BIGINT DEFAULT NULL,
-  `createdby_id` BIGINT NOT NULL,
-  `lastmodifiedby_id` BIGINT NOT NULL,
-  `created_date` datetime NOT NULL,
-  `lastmodified_date` datetime NOT NULL,
-  PRIMARY KEY (`id`),
-  KEY `FK_acc_gl_journal_entry_m_office` (`office_id`),
-  KEY `FK_acc_gl_journal_entry_m_appuser` (`createdby_id`),
-  KEY `FK_acc_gl_journal_entry_m_appuser_2` (`lastmodifiedby_id`),
-  KEY `FK_acc_gl_journal_entry_acc_gl_journal_entry` (`reversal_id`),
-  KEY `FK_acc_gl_journal_entry_acc_gl_account` (`account_id`),
-  CONSTRAINT `FK_acc_gl_journal_entry_acc_gl_account` FOREIGN KEY (`account_id`) REFERENCES `acc_gl_account` (`id`),
-  CONSTRAINT `FK_acc_gl_journal_entry_acc_gl_journal_entry` FOREIGN KEY (`reversal_id`) REFERENCES `acc_gl_journal_entry` (`id`),
-  CONSTRAINT `FK_acc_gl_journal_entry_m_appuser` FOREIGN KEY (`createdby_id`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_acc_gl_journal_entry_m_appuser_2` FOREIGN KEY (`lastmodifiedby_id`) REFERENCES `m_appuser` (`id`),
-  CONSTRAINT `FK_acc_gl_journal_entry_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `acc_product_mapping` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `gl_account_id` BIGINT DEFAULT NULL,
-  `product_id` BIGINT DEFAULT NULL,
-  `product_type` SMALLINT DEFAULT NULL,
-  `financial_account_type` SMALLINT DEFAULT NULL,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
--- =========== end of accounting related tables ==========
-
--- DDL for reporting related tables
-CREATE TABLE `rpt_sequence` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `stretchy_parameter` (
-  `parameter_id` INT NOT NULL AUTO_INCREMENT,
-  `parameter_name` varchar(45) NOT NULL,
-  `parameter_variable` varchar(45) DEFAULT NULL,
-  `parameter_label` varchar(45) NOT NULL,
-  `parameter_displayType` varchar(45) NOT NULL,
-  `parameter_FormatType` varchar(10) NOT NULL,
-  `parameter_default` varchar(45) NOT NULL,
-  `special` varchar(1) DEFAULT NULL,
-  `selectOne` varchar(1) DEFAULT NULL,
-  `selectAll` varchar(1) DEFAULT NULL,
-  `parameter_sql` text,
-  `parent_parameter_id` INT NULL DEFAULT NULL,
-  PRIMARY KEY (`parameter_id`),
-  UNIQUE KEY `name_UNIQUE` (`parameter_name`),
-  INDEX `fk_stretchy_parameter_0001_idx` (`parent_parameter_id`),
-  CONSTRAINT `fk_stretchy_parameter_0001` FOREIGN KEY (`parent_parameter_id`) REFERENCES `stretchy_parameter` (`parameter_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `stretchy_report` (
-  `report_id` INT NOT NULL AUTO_INCREMENT,
-  `report_name` varchar(100) NOT NULL,
-  `report_type` varchar(20) NOT NULL,
-  `report_subtype` varchar(20) DEFAULT NULL,
-  `report_category` varchar(45) DEFAULT NULL,
-  `report_sql` text,
-  `description` text,
-  `core_report` tinyint DEFAULT '0',
-  `use_report` tinyint DEFAULT '0',
-  PRIMARY KEY (`report_id`),
-  UNIQUE KEY `report_name_UNIQUE` (`report_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-CREATE TABLE `stretchy_report_parameter` (
-  `report_id` INT NOT NULL,
-  `parameter_id` INT NOT NULL,
-  `report_parameter_name` varchar(45) DEFAULT NULL,
-  PRIMARY KEY (`report_id`,`parameter_id`),
-  UNIQUE KEY `report_id_name_UNIQUE` (`report_id`,`report_parameter_name`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
--- =========== end of reporting related tables ============
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V200__alter_savings_account_for_start_interest_calculation_date.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V200__alter_savings_account_for_start_interest_calculation_date.sql
deleted file mode 100644
index 6a952e3..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V200__alter_savings_account_for_start_interest_calculation_date.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account`
-ADD COLUMN `start_interest_calculation_date` DATE NULL DEFAULT NULL AFTER `min_balance_for_interest_calculation`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V201__webhooks.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V201__webhooks.sql
deleted file mode 100644
index f31b276..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V201__webhooks.sql
+++ /dev/null
@@ -1,125 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
--- -----------------------------------------------------
--- Table `m_hook_templates`
--- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS `m_hook_templates` (
-  `id` SMALLINT NOT NULL AUTO_INCREMENT,
-  `name` VARCHAR(45) NOT NULL,
-  PRIMARY KEY (`id`))
-ENGINE = InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
--- -----------------------------------------------------
--- Table `m_hook`
--- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS `m_hook` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `template_id` SMALLINT NOT NULL,
-  `is_active` SMALLINT NOT NULL DEFAULT 1,
-  `name` VARCHAR(45) NOT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  INDEX `fk_template_id_idx` (`template_id` ASC),
-  CONSTRAINT `fk_template_id`
-    FOREIGN KEY (`template_id`)
-    REFERENCES `m_hook_templates` (`id`))
-ENGINE = InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
--- -----------------------------------------------------
--- Table `m_hook_schema`
--- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS `m_hook_schema` (
-  `id` SMALLINT NOT NULL AUTO_INCREMENT,
-  `hook_template_id` SMALLINT NOT NULL,
-  `field_type` VARCHAR(45) NOT NULL,
-  `field_name` VARCHAR(100) NOT NULL,
-  `placeholder` VARCHAR(100) DEFAULT NULL,
-  `optional` TINYINT NOT NULL DEFAULT 0,
-  PRIMARY KEY (`id`),
-  INDEX `fk_hook_template_id_idx` (`hook_template_id` ASC),
-  CONSTRAINT `fk_hook_template_id`
-    FOREIGN KEY (`hook_template_id`)
-    REFERENCES `m_hook_templates` (`id`))
-ENGINE = InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
--- -----------------------------------------------------
--- Table `m_hook_registered_events`
--- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS `m_hook_registered_events` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `hook_id` BIGINT NOT NULL,
-  `entity_name` VARCHAR(45) NOT NULL,
-  `action_name` VARCHAR(45) NOT NULL,
-  PRIMARY KEY (`id`),
-  INDEX `fk_hook_id_idx` (`hook_id` ASC),
-  CONSTRAINT `fk_hook_idc`
-    FOREIGN KEY (`hook_id`)
-    REFERENCES `m_hook` (`id`))
-ENGINE = InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
--- -----------------------------------------------------
--- Table `m_hook_configuration`
--- -----------------------------------------------------
-CREATE TABLE IF NOT EXISTS `m_hook_configuration` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `hook_id` BIGINT NULL,
-  `field_type` VARCHAR(45) NOT NULL,
-  `field_name` VARCHAR(100) NOT NULL,
-  `field_value` VARCHAR(100) NOT NULL,
-  PRIMARY KEY (`id`),
-  INDEX `fk_hook_id_idx` (`hook_id` ASC),
-  CONSTRAINT `fk_hook_id_cfg`
-    FOREIGN KEY (`hook_id`)
-    REFERENCES `m_hook` (`id`))
-ENGINE = InnoDB DEFAULT CHARSET=UTF8MB4;
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'CREATE_HOOK', 'HOOK', 'CREATE', 0);
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'READ_HOOK', 'HOOK', 'READ', 0);
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'UPDATE_HOOK', 'HOOK', 'UPDATE', 0);
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'DELETE_HOOK', 'HOOK', 'DELETE', 0);
-
-insert into m_hook_templates values(1, "Web");
-insert into m_hook_templates values(2, "SMS Bridge");
-
-INSERT INTO `m_hook_schema` (`hook_template_id`, `field_type`, `field_name`, `optional`)
-VALUES (1, 'string', 'Payload URL', 0);
-INSERT INTO `m_hook_schema` (`hook_template_id`, `field_type`, `field_name`, `placeholder`, `optional`)
-VALUES (1, 'string', 'Content Type', 'json / form', 0);
-INSERT INTO `m_hook_schema` (`hook_template_id`, `field_type`, `field_name`, `optional`)
-VALUES (2, 'string', 'Payload URL', 0);
-INSERT INTO `m_hook_schema` (`hook_template_id`, `field_type`, `field_name`, `optional`)
-VALUES (2, 'string', 'SMS Provider', 0);
-INSERT INTO `m_hook_schema` (`hook_template_id`, `field_type`, `field_name`, `optional`)
-VALUES (2, 'string', 'Phone Number', 0);
-INSERT INTO `m_hook_schema` (`hook_template_id`, `field_type`, `field_name`, `optional`)
-VALUES (2, 'string', 'SMS Provider Token', 0);
-INSERT INTO `m_hook_schema` (`hook_template_id`, `field_type`, `field_name`, `optional`)
-VALUES (2, 'string', 'SMS Provider Account Id', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V202__savings_officer_history_table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V202__savings_officer_history_table.sql
deleted file mode 100644
index bdcaad0..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V202__savings_officer_history_table.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_savings_officer_assignment_history` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `account_id` BIGINT NOT NULL,
-  `savings_officer_id` BIGINT DEFAULT NULL,
-  `start_date` date NOT NULL,
-  `end_date` date DEFAULT NULL,
-  `createdby_id` BIGINT DEFAULT NULL,
-  `created_date` datetime DEFAULT NULL,
-  `lastmodified_date` datetime DEFAULT NULL,
-  `lastmodifiedby_id` BIGINT DEFAULT NULL,
-  PRIMARY KEY (`id`),
-  KEY `fk_m_savings_officer_assignment_history_0001` (`account_id`),
-  KEY `fk_m_savings_officer_assignment_history_0002` (`savings_officer_id`),
-  CONSTRAINT `fk_m_savings_officer_assignment_history_0001` FOREIGN KEY (`account_id`) REFERENCES `m_savings_account` (`id`),
-  CONSTRAINT `fk_m_savings_officer_assignment_history_0002` FOREIGN KEY (`savings_officer_id`) REFERENCES `m_staff` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-insert into m_permission (`grouping`,code,entity_name,action_name) values ('portfolio','REMOVESAVINGSOFFICER_SAVINGSACCOUNT','SAVINGSACCOUNT','REMOVESAVINGSOFFICER');
-insert into m_permission (`grouping`,code,entity_name,action_name) values ('portfolio','UPDATESAVINGSOFFICER_SAVINGSACCOUNT','SAVINGSACCOUNT','UPDATESAVINGSOFFICER');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V203__added_subbmittedDate_loantransaction.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V203__added_subbmittedDate_loantransaction.sql
deleted file mode 100644
index cc32273..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V203__added_subbmittedDate_loantransaction.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_transaction` ADD `submitted_on_date` DATE NOT NULL;
-
-UPDATE `m_loan_transaction` SET `submitted_on_date`= `transaction_date` ;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V204__insert_script_for_charges_paid_by_for_accruals.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V204__insert_script_for_charges_paid_by_for_accruals.sql
deleted file mode 100644
index 8d2c77c..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V204__insert_script_for_charges_paid_by_for_accruals.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-insert into m_loan_charge_paid_by (`loan_transaction_id`,`loan_charge_id`,`amount`) select lt.id, lc.id,  if(lic.amount is null,lc.amount,lic.amount)  from m_loan_transaction lt join m_loan_repayment_schedule rs on rs.loan_id = lt.loan_id and rs.duedate = lt.transaction_date join m_loan_charge lc on lc.loan_id = rs.loan_id and ((lc.due_for_collection_as_of_date > rs.fromdate and lc.due_for_collection_as_of_date <= rs.duedate) or lc.charge_time_enum = 8) and lc.is_active=1 join m_loan loa [...]
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V205__fix_for_charge_and_interest_waiver_with_accruals.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V205__fix_for_charge_and_interest_waiver_with_accruals.sql
deleted file mode 100644
index dfc3ecd..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V205__fix_for_charge_and_interest_waiver_with_accruals.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_charge_paid_by`
-    ADD COLUMN `installment_number` SMALLINT NULL AFTER `amount`;
-
-ALTER TABLE `m_loan_transaction`
-    ADD COLUMN `unrecognized_income_portion` DECIMAL(19,6) NULL DEFAULT NULL AFTER `overpayment_portion_derived`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V206__interest_posting_configuration.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V206__interest_posting_configuration.sql
deleted file mode 100644
index bd15bd3..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V206__interest_posting_configuration.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE c_configuration ADD `description` varchar(300) DEFAULT NULL;
-
-INSERT INTO `c_configuration` (`id`, `name`, `enabled`, `description`)
-VALUES (NULL, 'savings-interest-posting-current-period-end', '0', "Recommended to be changed only once during start of production. When set as false(default), interest will be posted on the first date of next period. If set as true, interest will be posted on last date of current period. There is no difference in the interest amount posted.");
-
-INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`, `description`)
-VALUES (NULL, 'financial-year-beginning-month', '1', '1', "Recommended to be changed only once during start of production. Allowed values 1 - 12 (January - December). Interest posting periods are evaluated based on this configuration.");
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V207__min_max_clients_per_group.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V207__min_max_clients_per_group.sql
deleted file mode 100644
index a8e7f4a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V207__min_max_clients_per_group.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_group_level`
-    ADD COLUMN `min_clients` INT NOT NULL DEFAULT '0' AFTER `can_have_clients`,
-    ADD COLUMN `max_clients` INT NOT NULL DEFAULT '0' AFTER `min_clients`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V208__min_max_clients_in_group_redux.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V208__min_max_clients_in_group_redux.sql
deleted file mode 100644
index 15f4c13..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V208__min_max_clients_in_group_redux.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `c_configuration` (`id`, `name`,`value`, `enabled`, `description`)
-VALUES (NULL, 'min-clients-in-group', '5', '0',"Minimum number of Clients that a Group should have");
-
-INSERT INTO `c_configuration` (`id`, `name`, `value`, `enabled`, `description`)
-VALUES (NULL, 'max-clients-in-group', '5', '0', "Maximum number of Clients that a Group can have");
-
-ALTER TABLE `m_group_level`
-    DROP COLUMN `min_clients`,
-    DROP COLUMN `max_clients`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V209__add_all_report_names_in_m_permission_table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V209__add_all_report_names_in_m_permission_table.sql
deleted file mode 100644
index d005c06..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V209__add_all_report_names_in_m_permission_table.sql
+++ /dev/null
@@ -1,60 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Active Loans - Summary(Pentaho)', 'Active Loans - Summary(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Active Loans by Disbursal Period(Pentaho)', 'Active Loans by Disbursal Period(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Active Loans in last installment Summary(Pentaho)', 'Active Loans in last installment Summary(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Active Loans in last installment(Pentaho)', 'Active Loans in last installment(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Active Loans Passed Final Maturity Summary(Pentaho)', 'Active Loans Passed Final Maturity Summary(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Active Loans Passed Final Maturity(Pentaho)', 'Active Loans Passed Final Maturity(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Aging Detail(Pentaho)', 'Aging Detail(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Aging Summary (Arrears in Months)(Pentaho)', 'Aging Summary (Arrears in Months)(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Aging Summary (Arrears in Weeks)(Pentaho)', 'Aging Summary (Arrears in Weeks)(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Client Listing(Pentaho)', 'Client Listing(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Client Loan Account Schedule', 'Client Loan Account Schedule', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Client Loans Listing(Pentaho)', 'Client Loans Listing(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Client Saving Transactions', 'Client Saving Transactions', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Client Savings Summary', 'Client Savings Summary', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_ClientSummary ', 'ClientSummary ', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_ClientTrendsByDay', 'ClientTrendsByDay', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_ClientTrendsByMonth', 'ClientTrendsByMonth', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_ClientTrendsByWeek', 'ClientTrendsByWeek', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Demand_Vs_Collection', 'Demand_Vs_Collection', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Disbursal_Vs_Awaitingdisbursal', 'Disbursal_Vs_Awaitingdisbursal', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Expected Payments By Date - Basic(Pentaho)', 'Expected Payments By Date - Basic(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Funds Disbursed Between Dates Summary by Office(Pentaho)', 'Funds Disbursed Between Dates Summary by Office(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Funds Disbursed Between Dates Summary(Pentaho)', 'Funds Disbursed Between Dates Summary(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_GroupNamesByStaff', 'GroupNamesByStaff', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_GroupSavingSummary', 'GroupSavingSummary', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_LoanCyclePerProduct', 'LoanCyclePerProduct', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Loans Awaiting Disbursal Summary by Month(Pentaho)', 'Loans Awaiting Disbursal Summary by Month(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Loans Awaiting Disbursal Summary(Pentaho)', 'Loans Awaiting Disbursal Summary(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Loans Awaiting Disbursal(Pentaho)', 'Loans Awaiting Disbursal(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Loans Pending Approval(Pentaho)', 'Loans Pending Approval(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_LoanTrendsByDay', 'LoanTrendsByDay', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_LoanTrendsByMonth', 'LoanTrendsByMonth', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_LoanTrendsByWeek', 'LoanTrendsByWeek', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Obligation Met Loans Details(Pentaho)', 'Obligation Met Loans Details(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Obligation Met Loans Summary(Pentaho)', 'Obligation Met Loans Summary(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Portfolio at Risk by Branch(Pentaho)', 'Portfolio at Risk by Branch(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Portfolio at Risk(Pentaho)', 'Portfolio at Risk(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Rescheduled Loans(Pentaho)', 'Rescheduled Loans(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Savings Transactions', 'Savings Transactions', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_TxnRunningBalances(Pentaho)', 'TxnRunningBalances(Pentaho)', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('report', 'READ_Written-Off Loans(Pentaho)', 'Written-Off Loans(Pentaho)', 'READ', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V20__report_maint_perms_really_configuration.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V20__report_maint_perms_really_configuration.sql
deleted file mode 100644
index 8e511e0..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V20__report_maint_perms_really_configuration.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-update m_permission set `grouping` = 'configuration' where entity_name = 'report';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V210__track_manually_adjusted_transactions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V210__track_manually_adjusted_transactions.sql
deleted file mode 100644
index f4b792b..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V210__track_manually_adjusted_transactions.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-Alter table m_loan_transaction
-Add column manually_adjusted_or_reversed tinyint default 0;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V211__minimum_days_between_disbursal_and_first_repayment.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V211__minimum_days_between_disbursal_and_first_repayment.sql
deleted file mode 100644
index 29e379e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V211__minimum_days_between_disbursal_and_first_repayment.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `min_days_between_disbursal_and_first_repayment` INT NULL AFTER `interest_recalculation_enabled`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql
deleted file mode 100644
index f18f1db..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V212__add_NthDay_and_DayOfWeek_columns_loan.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan`
- ADD COLUMN `repayment_frequency_nth_day_enum` SMALLINT NOT NULL DEFAULT '0' AFTER `repayment_period_frequency_enum`,
- ADD COLUMN `repayment_frequency_day_of_week_enum` SMALLINT NOT NULL DEFAULT '0' AFTER `repayment_frequency_nth_day_enum`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql
deleted file mode 100644
index 9b306ea..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V213__NthDay_and_DayOfWeek_columns_should_be_nullable.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan`
-    CHANGE COLUMN `repayment_frequency_nth_day_enum` `repayment_frequency_nth_day_enum` SMALLINT NULL DEFAULT '0' AFTER `repayment_period_frequency_enum`,
-    CHANGE COLUMN `repayment_frequency_day_of_week_enum` `repayment_frequency_day_of_week_enum` SMALLINT NULL DEFAULT '0' AFTER `repayment_frequency_nth_day_enum`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V214__alter_table_add_create_SI_at_disbursement.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V214__alter_table_add_create_SI_at_disbursement.sql
deleted file mode 100644
index 0809033..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V214__alter_table_add_create_SI_at_disbursement.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-alter table  `m_loan` add  `create_standing_instruction_at_disbursement` tinyint null;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V215__guarantee_on_hold_fund_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V215__guarantee_on_hold_fund_changes.sql
deleted file mode 100644
index 55cb07e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V215__guarantee_on_hold_fund_changes.sql
+++ /dev/null
@@ -1,37 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `on_hold_funds_derived` DECIMAL(19,6) NULL DEFAULT NULL;
-
-ALTER TABLE `m_portfolio_account_associations`
-    ADD COLUMN `association_type_enum` SMALLINT NOT NULL DEFAULT '1';
-
-CREATE TABLE `m_product_loan_guarantee_details` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `loan_product_id` BIGINT NOT NULL,
-    `mandatory_guarantee` DECIMAL(19,5) NOT NULL,
-    `minimum_guarantee_from_own_funds` DECIMAL(19,5) NULL,
-    `minimum_guarantee_from_guarantor_funds` DECIMAL(19,5) NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_guarantee_details_loan_product` FOREIGN KEY (`loan_product_id`) REFERENCES `m_product_loan` (`id`)
-);
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `hold_guarantee_funds` tinyint NOT NULL DEFAULT '0';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V216__adding_loan_proposed_amount_to_loan.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V216__adding_loan_proposed_amount_to_loan.sql
deleted file mode 100644
index a51aa56..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V216__adding_loan_proposed_amount_to_loan.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-       ALTER TABLE `m_loan` ADD COLUMN `principal_amount_proposed` DECIMAL(19,6) NOT NULL AFTER `currency_multiplesof`;
-    UPDATE m_loan SET principal_amount_proposed = approved_principal;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V217__client_substatus_and_codevalue_description.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V217__client_substatus_and_codevalue_description.sql
deleted file mode 100644
index fac5bf2..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V217__client_substatus_and_codevalue_description.sql
+++ /dev/null
@@ -1,30 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-ALTER TABLE `m_client`
-    ADD COLUMN `sub_status` INT NULL DEFAULT NULL AFTER `status_enum`,
-    ADD CONSTRAINT `FK_m_client_substatus_m_code_value` FOREIGN KEY (`sub_status`) REFERENCES `m_code_value` (`id`);
-
-
-INSERT INTO `m_code` (`code_name`, `is_system_defined`) VALUES ('ClientSubStatus', 1);
-
-
-ALTER TABLE `m_code_value`
-    ADD COLUMN `code_description` VARCHAR(500) NULL DEFAULT NULL AFTER `code_value`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V218__add_user_and_datetime_for_loan_savings_transactions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V218__add_user_and_datetime_for_loan_savings_transactions.sql
deleted file mode 100644
index 85ba517..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V218__add_user_and_datetime_for_loan_savings_transactions.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_transaction`
-    ADD COLUMN 	(
-        `created_date` DATETIME,
-        `appuser_id` BIGINT
-    );
-
-ALTER TABLE `m_savings_account_transaction`
-    ADD COLUMN `appuser_id` BIGINT;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V219__guarantor_on_hold_fund_changes_for_account.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V219__guarantor_on_hold_fund_changes_for_account.sql
deleted file mode 100644
index 2eee062..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V219__guarantor_on_hold_fund_changes_for_account.sql
+++ /dev/null
@@ -1,65 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_portfolio_account_associations`
-    ADD COLUMN `is_active` tinyint NOT NULL DEFAULT '1';
-
-ALTER TABLE `m_guarantor`
-    ADD COLUMN `is_active` tinyint NOT NULL DEFAULT '1';
-
-CREATE TABLE `m_guarantor_funding_details` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `guarantor_id` BIGINT NOT NULL,
-    `account_associations_id` BIGINT NOT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    `amount_released_derived` DECIMAL(19,6) NULL,
-    `amount_remaining_derived` DECIMAL(19,6) NULL,
-    `amount_transfered_derived` DECIMAL(19,6) NULL,
-    `status_enum` SMALLINT NOT NULL,
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_m_guarantor_fund_details_m_guarantor` FOREIGN KEY (`guarantor_id`) REFERENCES `m_guarantor` (`id`),
-    CONSTRAINT `FK_m_guarantor_fund_details_account_associations_id` FOREIGN KEY (`account_associations_id`) REFERENCES `m_portfolio_account_associations` (`id`)
-);
-
-CREATE TABLE `m_deposit_account_on_hold_transaction` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `savings_account_id` BIGINT NOT NULL,
-    `amount` DECIMAL(19,6) NOT NULL,
-    `transaction_type_enum` SMALLINT NOT NULL,
-    `transaction_date` DATE NOT NULL,
-    `is_reversed` tinyint NOT NULL DEFAULT '0',
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_deposit_on_hold_transaction_m_savings_account` FOREIGN KEY (`savings_account_id`) REFERENCES `m_savings_account` (`id`)
-);
-
-CREATE TABLE `m_guarantor_transaction` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `guarantor_fund_detail_id` BIGINT NOT NULL,
-    `loan_transaction_id` BIGINT NOT NULL,
-    `deposit_on_hold_transaction_id` BIGINT NOT NULL,
-    `is_reversed` tinyint NOT NULL DEFAULT '0',
-    PRIMARY KEY (`id`),
-    CONSTRAINT `FK_guarantor_transaction_m_deposit_account_on_hold_transaction` FOREIGN KEY (`deposit_on_hold_transaction_id`) REFERENCES `m_deposit_account_on_hold_transaction` (`id`),
-    CONSTRAINT `FK_guarantor_transaction_guarantor_fund_detail` FOREIGN KEY (`guarantor_fund_detail_id`) REFERENCES `m_guarantor_funding_details` (`id`),
-    CONSTRAINT `FK_guarantor_transaction_m_loan_transaction` FOREIGN KEY (`loan_transaction_id`) REFERENCES `m_loan_transaction` (`id`)
-);
-
-ALTER TABLE `m_loan`
-    ADD COLUMN `guarantee_amount_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `interest_recalculation_enabled`,
-    ADD COLUMN `guarantee_outstanding_amount_derived` DECIMAL(19,6) NULL DEFAULT NULL AFTER `guarantee_amount_derived`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V21__activation-permissions-for-clients.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V21__activation-permissions-for-clients.sql
deleted file mode 100644
index 04cfa02..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V21__activation-permissions-for-clients.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'ACTIVATE_CLIENT', 'CLIENT', 'ACTIVATE', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'ACTIVATE_CLIENT_CHECKER', 'CLIENT', 'ACTIVATE', 0);
-
-
-ALTER TABLE `m_client`
-CHANGE COLUMN `external_id` `external_id` VARCHAR(100) NULL DEFAULT NULL AFTER `account_no`,
-CHANGE COLUMN `status_enum` `status_enum` INT NOT NULL DEFAULT '300' AFTER `external_id`,
-CHANGE COLUMN `joined_date` `activation_date` DATE NULL DEFAULT NULL  AFTER `status_enum`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V220_1__prefix_type_account_number.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V220_1__prefix_type_account_number.sql
deleted file mode 100644
index 47bab73..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V220_1__prefix_type_account_number.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-
-ALTER TABLE `c_account_number_format`
-    ADD COLUMN `prefix_character` VARCHAR(50) NULL DEFAULT NULL AFTER `prefix_type_enum`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V220__account_number_preferences.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V220__account_number_preferences.sql
deleted file mode 100644
index 93bed74..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V220__account_number_preferences.sql
+++ /dev/null
@@ -1,41 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `c_account_number_format` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `account_type_enum` SMALLINT NOT NULL,
-    `prefix_type_enum` SMALLINT NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    UNIQUE INDEX `account_type_enum` (`account_type_enum`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB
-;
-
-
-/*permissions*/
-
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'CREATE_ACCOUNTNUMBERFORMAT', 'ACCOUNTNUMBERFORMAT', 'CREATE', 0);
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'READ_ACCOUNTNUMBERFORMAT', 'ACCOUNTNUMBERFORMAT', 'READ', 0);
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'UPDATE_ACCOUNTNUMBERFORMAT', 'ACCOUNTNUMBERFORMAT', 'UPDATE', 0);
-insert into `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES ('configuration', 'DELETE_ACCOUNTNUMBERFORMAT', 'HOOK', 'DELETE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V221__add_version_for_m_savings_account.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V221__add_version_for_m_savings_account.sql
deleted file mode 100644
index 8447565..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V221__add_version_for_m_savings_account.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_savings_account`
-    ADD COLUMN `version` INT NOT NULL DEFAULT '1' AFTER `on_hold_funds_derived`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V222__guarantor_on_hold_fund_changes_for_transactions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V222__guarantor_on_hold_fund_changes_for_transactions.sql
deleted file mode 100644
index 61a471d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V222__guarantor_on_hold_fund_changes_for_transactions.sql
+++ /dev/null
@@ -1,32 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_deposit_account_on_hold_transaction`
-    ADD COLUMN `created_date` DATETIME NOT NULL;
-
-ALTER TABLE `m_guarantor_transaction`
-    ALTER `loan_transaction_id` DROP DEFAULT;
-
-ALTER TABLE `m_guarantor_transaction`
-    CHANGE COLUMN `loan_transaction_id` `loan_transaction_id` BIGINT NULL ;
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'RECOVERGUARANTEES_LOAN', 'LOAN', 'RECOVERGUARANTEES', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'RECOVERGUARANTEES_LOAN_CHECKER', 'LOAN', 'RECOVERGUARANTEES_CHECKER', 0);
-ALTER TABLE `m_loan`
-    DROP COLUMN `guarantee_outstanding_amount_derived`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V223__add_version_for_m_loan_account.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V223__add_version_for_m_loan_account.sql
deleted file mode 100644
index e9166ce..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V223__add_version_for_m_loan_account.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan`
-    ADD COLUMN `version` INT NOT NULL DEFAULT '1' AFTER `create_standing_instruction_at_disbursement`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V224__client_lifecycle_adding_statuses.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V224__client_lifecycle_adding_statuses.sql
deleted file mode 100644
index 8e86dd4..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V224__client_lifecycle_adding_statuses.sql
+++ /dev/null
@@ -1,52 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-/**add columns to m_client**/
-ALTER TABLE `m_client`
-    ADD COLUMN `reject_reason_cv_id` INT NULL DEFAULT NULL AFTER `client_classification_cv_id`,
-    ADD COLUMN `rejectedon_date` DATE NULL DEFAULT NULL AFTER `reject_reason_cv_id`,
-    ADD COLUMN `rejectedon_userid` BIGINT NULL DEFAULT NULL AFTER `rejectedon_date`,
-    ADD COLUMN `withdraw_reason_cv_id` INT NULL DEFAULT NULL AFTER `rejectedon_userid`,
-    ADD COLUMN `withdrawn_on_date` DATE NULL DEFAULT NULL AFTER `withdraw_reason_cv_id`,
-    ADD COLUMN `withdraw_on_userid` BIGINT NULL DEFAULT NULL AFTER `withdrawn_on_date`,
-    ADD COLUMN `reactivated_on_date` DATE NULL AFTER `withdraw_on_userid`,
-    ADD COLUMN `reactivated_on_userid` BIGINT NULL AFTER `reactivated_on_date`,
-    ADD CONSTRAINT `FK_m_client_type_mcode_value_reject` FOREIGN KEY (`reject_reason_cv_id`) REFERENCES `m_code_value` (`id`),
-    ADD CONSTRAINT `FK_m_client_type_m_code_value_withdraw` FOREIGN KEY (`withdraw_reason_cv_id`) REFERENCES `m_code_value` (`id`);
-
-
-ALTER TABLE `m_client`
-    ADD COLUMN `updated_by` BIGINT NULL DEFAULT NULL AFTER `closedon_date`,
-    ADD COLUMN `updated_on` DATE NULL DEFAULT NULL AFTER `updated_by`;
-
-
-/**permissions for client reject and withdraw**/
-INSERT INTO `m_permission` ( `grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'REJECT_CLIENT', 'CLIENT', 'REJECT', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'REJECT_CLIENT_CHECKER', 'CLIENT', 'REJECT_CHECKER', 0);
-
-INSERT INTO `m_permission` ( `grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'WITHDRAW_CLIENT', 'CLIENT', 'WITHDRAW', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'WITHDRAW_CLIENT_CHECKER', 'CLIENT', 'WITHDRAW_CHECKER', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'REACTIVATE_CLIENT', 'CLIENT', 'REACTIVATE', 1);
-INSERT INTO `m_permission` ( `grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'portfolio', 'REACTIVATE_CLIENT_CHECKER', 'CLIENT', 'REACTIVATE_CHECKER', 0);
-
-
-/**Code for capturing reasons for new life cycle events**/
-INSERT INTO `m_code` ( `code_name`, `is_system_defined`) VALUES ( 'ClientRejectReason', 1);
-INSERT INTO `m_code` ( `code_name`, `is_system_defined`) VALUES ( 'ClientWithdrawReason', 1);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V225__permissions_for_updating_recurring_deposit_amount.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V225__permissions_for_updating_recurring_deposit_amount.sql
deleted file mode 100644
index 09d67c4..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V225__permissions_for_updating_recurring_deposit_amount.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'UPDATEDEPOSITAMOUNT_RECURRINGDEPOSITACCOUNT', 'RECURRINGDEPOSITACCOUNT', 'UPDATEDEPOSITAMOUNT', 1);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ( 'transaction_savings', 'UPDATEDEPOSITAMOUNT_RECURRINGDEPOSITACCOUNT_CHECKER', 'RECURRINGDEPOSITACCOUNT', 'UPDATEDEPOSITAMOUNT', 1);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V226__configuration_for_enforcing_calendars_for_jlg_loans.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V226__configuration_for_enforcing_calendars_for_jlg_loans.sql
deleted file mode 100644
index 771d42c..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V226__configuration_for_enforcing_calendars_for_jlg_loans.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO c_configuration (`name`, `description`) VALUES ('meetings-mandatory-for-jlg-loans', 'Enforces all JLG loans to follow a meeting schedule belonging to parent group or Center');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V227__loan-refund-permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V227__loan-refund-permissions.sql
deleted file mode 100644
index b3bfdc2..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V227__loan-refund-permissions.sql
+++ /dev/null
@@ -1,34 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES
-    ('transaction_savings', 'REFUNDBYTRANSFER_ACCOUNTTRANSFER_CHECKER', 'ACCOUNTTRANSFER', 'REFUNDBYTRANSFER', 0);
-
-    INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES
-    ( 'transaction_savings', 'REFUNDBYTRANSFER_ACCOUNTTRANSFER', 'ACCOUNTTRANSFER', 'REFUNDBYTRANSFER', 1);
-
-    INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES
-    ('transaction_loan', 'REFUNDBYCASH_LOAN', 'LOAN', 'REFUNDBYCASH', 1);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`)
-VALUES
-    ('transaction_loan', 'REFUNDBYCASH_LOAN_CHECKER', 'LOAN', 'REFUNDBYCASH', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V228__entity_to_entity_access.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V228__entity_to_entity_access.sql
deleted file mode 100644
index 31aace9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V228__entity_to_entity_access.sql
+++ /dev/null
@@ -1,64 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
--- Code required to store various types of Entity to Entity Access types that Mifos Supports
-insert into m_code (code_name, is_system_defined)
-values ('Entity to Entity Access Types', 1);
-
--- Three Code Values required to support:
--- a) Loan Products restricted to specific Offices
--- b) Savings Products restricted to specific Offices
--- c) Fees/Charges restricted to specific Offices
-insert into m_code_value (code_id, code_value, order_position)
-values (
-    (select id from m_code where code_name = 'Entity to Entity Access Types'),
-    'Office Access to Loan Products',  0);
-
-insert into m_code_value (code_id, code_value, order_position)
-values (
-    (select id from m_code where code_name = 'Entity to Entity Access Types'),
-    'Office Access to Savings Products',  0);
-
-insert into m_code_value (code_id, code_value, order_position)
-values (
-    (select id from m_code where code_name = 'Entity to Entity Access Types'),
-    'Office Access to Fees/Charges',  0);
-
--- Table where the actual restrictions will be stored
-CREATE TABLE `m_entity_to_entity_access` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `entity_type` VARCHAR(50) NOT NULL,
-    `entity_id` BIGINT NOT NULL,
-    `access_type_code_value_id` INT NOT NULL,
-    `second_entity_type` VARCHAR(50) NOT NULL,
-    `second_entity_id` BIGINT NOT NULL,
-    PRIMARY KEY (`id`),
-    INDEX `IDX_OFFICE` (`entity_type`,`entity_id`),
-    UNIQUE KEY `id_uniq_m_entity_to_entity_access` (`entity_type`,`entity_id`,`access_type_code_value_id`,`second_entity_type`,`second_entity_id`),
-    CONSTRAINT `FK_access_type_code_m_code_value` FOREIGN KEY (`access_type_code_value_id`) REFERENCES `m_code_value` (`id`)
-);
-
--- Global Configurations for Entity access restrictions
-insert into c_configuration (name, value, enabled, description)
-    values ('office-specific-products-enabled', 0, 0,
-    'Whether products and fees should be office specific or not? This property should NOT be changed once Mifos is Live.');
-
-insert into c_configuration (name, value, enabled, description)
-    values ('restrict-products-to-user-office', 0, 0,
-    'This should be enabled only if, products & fees are office specific (i.e. office-specific-products-enabled is enabled). This property specifies if the products should be auto-restricted to office of the user who created the proudct? Note: This property should NOT be changed once Mifos is Live.');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V229__teller_cash_management.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V229__teller_cash_management.sql
deleted file mode 100644
index dffe568..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V229__teller_cash_management.sql
+++ /dev/null
@@ -1,126 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_tellers` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `office_id` BIGINT NOT NULL,
-    `debit_account_id` BIGINT,
-    `credit_account_id` BIGINT,
-    `name` VARCHAR(50) NOT NULL,
-    `description` VARCHAR(100),
-    `valid_from` DATE,
-    `valid_to` DATE,
-    `state` SMALLINT,
-    PRIMARY KEY (`id`),
-    UNIQUE INDEX `m_tellers_name_unq` (`name`),
-    INDEX `IK_m_tellers_m_office` (`office_id`),
-    CONSTRAINT `FK_m_tellers_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`),
-    CONSTRAINT `FK_m_tellers_gl_account_debit_account_id` FOREIGN KEY (`debit_account_id`) REFERENCES `acc_gl_account` (`id`),
-    CONSTRAINT `FK_m_tellers_gl_account_credit_account_id` FOREIGN KEY (`credit_account_id`) REFERENCES `acc_gl_account` (`id`)
-    );
-
-CREATE TABLE `m_cashiers` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `staff_id` BIGINT,
-    `teller_id` BIGINT,
-    `description` VARCHAR(100),
-    `start_date` DATE,
-    `end_date` DATE,
-    `start_time` varchar(10),
-    `end_time` varchar(10),
-    `full_day` TINYINT,
-    PRIMARY KEY (`id`),
-    INDEX `IK_m_cashiers_m_staff` (`staff_id`),
-    INDEX `IK_m_cashiers_m_teller` (`teller_id`),
-    CONSTRAINT `FK_m_cashiers_m_staff` FOREIGN KEY (`staff_id`) REFERENCES `m_staff` (`id`),
-    CONSTRAINT `FK_m_cashiers_m_teller` FOREIGN KEY (`teller_id`) REFERENCES `m_tellers` (`id`)
-    );
-
-CREATE TABLE `m_cashier_transactions` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `cashier_id` BIGINT NOT NULL,
-    `txn_type` SMALLINT  NOT NULL,
-    `txn_amount` DECIMAL (19,6)  NOT NULL,
-    `txn_date` DATE  NOT NULL,
-    `created_date` DATETIME  NOT NULL,
-    `entity_type` VARCHAR(50),
-    `entity_id` BIGINT,
-    `txn_note` VARCHAR(200),
-    PRIMARY KEY (`id`),
-    INDEX `IK_m_teller_transactions_m_cashier` (`cashier_id`),
-    CONSTRAINT `FK_m_teller_transactions_m_cashiers` FOREIGN KEY (`cashier_id`) REFERENCES `m_cashiers` (`id`)
-    );
-
-
-    INSERT INTO m_permission (
-        `grouping`, code, entity_name, action_name, can_maker_checker
-    ) values (
-        'cash_mgmt', 'CREATE_TELLER', 'TELLER', 'CREATE', 1
-    );
-    INSERT INTO m_permission (
-        `grouping`, code, entity_name, action_name, can_maker_checker
-    ) values (
-        'cash_mgmt', 'UPDATE_TELLER', 'TELLER', 'CREATE', 1
-    );
-
-    INSERT INTO m_permission (
-        `grouping`, code, entity_name, action_name, can_maker_checker
-    ) values (
-        'cash_mgmt', 'ALLOCATECASHIER_TELLER', 'TELLER', 'ALLOCATE', 1
-    );
-
-    INSERT INTO m_permission (
-        `grouping`, code, entity_name, action_name, can_maker_checker
-    ) values (
-        'cash_mgmt', 'UPDATECASHIERALLOCATION_TELLER', 'TELLER', 'UPDATECASHIERALLOCATION', 1
-    );
-
-    INSERT INTO m_permission (
-        `grouping`, code, entity_name, action_name, can_maker_checker
-    ) values (
-        'cash_mgmt', 'DELETECASHIERALLOCATION_TELLER', 'TELLER', 'DELETECASHIERALLOCATION', 1
-    );
-
-    INSERT INTO m_permission (
-        `grouping`, code, entity_name, action_name, can_maker_checker
-    ) values (
-        'cash_mgmt', 'ALLOCATECASHTOCASHIER_TELLER', 'TELLER', 'ALLOCATECASHTOCASHIER', 1
-    );
-
-    INSERT INTO m_permission (
-        `grouping`, code, entity_name, action_name, can_maker_checker
-    ) values (
-        'cash_mgmt', 'SETTLECASHFROMCASHIER_TELLER', 'TELLER', 'SETTLECASHFROMCASHIER', 1
-    );
-
-    INSERT INTO r_enum_value (
-        enum_name, enum_id, enum_message_property, enum_value, enum_type
-    ) values (
-        'teller_status', 300, 'Active', 'Active',0
-    );
-    INSERT INTO r_enum_value (
-        enum_name, enum_id, enum_message_property, enum_value, enum_type
-    ) values (
-        'teller_status', 400, 'Inactive', 'Inactive',0
-    );
-    INSERT INTO r_enum_value (
-        enum_name, enum_id, enum_message_property, enum_value, enum_type
-    ) values (
-        'teller_status', 600, 'Closed', 'Closed',0
-    );
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V22__alter-group-for-consistency-add-permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V22__alter-group-for-consistency-add-permissions.sql
deleted file mode 100644
index e288d67..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V22__alter-group-for-consistency-add-permissions.sql
+++ /dev/null
@@ -1,38 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'ACTIVATE_CENTER', 'CENTER', 'ACTIVATE', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'ACTIVATE_CENTER_CHECKER', 'CENTER', 'ACTIVATE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'ACTIVATE_GROUP', 'GROUP', 'ACTIVATE', 1);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'ACTIVATE_GROUP_CHECKER', 'GROUP', 'ACTIVATE', 0);
-
-
-ALTER TABLE `m_group` DROP FOREIGN KEY `FK_m_group_level`;
-ALTER TABLE `m_group`
-CHANGE COLUMN `external_id` `external_id` VARCHAR(100) NULL DEFAULT NULL AFTER `id`,
-CHANGE COLUMN `status_enum` `status_enum` INT NOT NULL DEFAULT '300' AFTER `external_id`,
-CHANGE COLUMN `name` `display_name` VARCHAR(100) NOT NULL  AFTER `level_id`,
-CHANGE COLUMN `level_Id` `level_id` INT NOT NULL,
-ADD CONSTRAINT `FK_m_group_level` FOREIGN KEY (`level_id`) REFERENCES `m_group_level` (`id`);
-
-
-ALTER TABLE `m_group`
-DROP COLUMN `is_deleted`,
-ADD COLUMN `activation_date` DATE NULL DEFAULT NULL AFTER `status_enum` ;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V230__role_status_and_correspoding_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V230__role_status_and_correspoding_permissions.sql
deleted file mode 100644
index 38d534e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V230__role_status_and_correspoding_permissions.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_role` ADD COLUMN `is_disabled` tinyint NOT NULL DEFAULT 0 AFTER `description`;
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('authorisation', 'DISABLE_ROLE', 'ROLE', 'DISABLE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('authorisation', 'DISABLE_ROLE_CHECKER', 'ROLE', 'DISABLE_CHECKER', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('authorisation', 'ENABLE_ROLE', 'ROLE', 'ENABLE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('authorisation', 'ENABLE_ROLE_CHECKER', 'ROLE', 'ENABLE_CHECKER', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V231__m_cashier_transaction_added_currency_code.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V231__m_cashier_transaction_added_currency_code.sql
deleted file mode 100644
index 70d1118..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V231__m_cashier_transaction_added_currency_code.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_cashier_transactions` ADD COLUMN `currency_code` VARCHAR(3) NULL AFTER `txn_note`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V232__insert_center_closure_reason.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V232__insert_center_closure_reason.sql
deleted file mode 100644
index 986bf4c..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V232__insert_center_closure_reason.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_code` (`code_name`,`is_system_defined`) VALUES('CenterClosureReason',1);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V233__Savings_Transaction_Receipt.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V233__Savings_Transaction_Receipt.sql
deleted file mode 100644
index 9ae26ca..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V233__Savings_Transaction_Receipt.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO stretchy_parameter ( parameter_name, parameter_variable, parameter_label, parameter_displayType, parameter_FormatType, parameter_default, special, selectOne, selectAll, parameter_sql, parent_id) VALUES ('transactionId', 'transactionId', 'transactionId', 'text', 'string', 'n/a', NULL, NULL, NULL, NULL, NULL);
-
-INSERT INTO stretchy_report ( report_name, report_type, report_subtype, report_category, report_sql, description, core_report, use_report) VALUES ( 'Savings Transaction Receipt', 'Pentaho', NULL, NULL, NULL, NULL, 0, 1);
-
-INSERT INTO stretchy_report_parameter ( report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id from stretchy_report sr where sr.report_name='Savings Transaction Receipt'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='transactionId'),
- 'transactionId');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V234__opening_balaces_setup.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V234__opening_balaces_setup.sql
deleted file mode 100644
index 3c99ee4..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V234__opening_balaces_setup.sql
+++ /dev/null
@@ -1,53 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
--- Example: INSERT INTO `acc_gl_account`
---	(
--- `name`, `parent_id`, `hierarchy`, `gl_code`, `disabled`, `manual_journal_entries_allowed`,
---	`account_usage`, `classification_enum`, `tag_id`, `description`
---	)
---	VALUES
---	(
---	'Opening Balances Contra Account', NULL, '.', 'OBCA', 0, 1,
---	1, 3, NULL, NULL
---	);
-
-INSERT INTO `c_configuration`
-    (
-        `name`,
-        `value`,
-        `enabled`
-    )
-    VALUES
-    (
-        'office-opening-balances-contra-account',
-        0, -- Or Example: (SELECT id FROM acc_gl_account WHERE gl_code = 'OBCA' ),
-        1);
-
-ALTER TABLE `c_configuration`
-    ADD UNIQUE INDEX `name_UNIQUE` (`name`);
-
-INSERT INTO `m_permission`
-    (
-        `grouping`, `code`, `entity_name`, `action_name`
-    )
-    VALUES
-    (
-        'accounting', 'DEFINEOPENINGBALANCE_JOURNALENTRY', 'JOURNALENTRY', 'DEFINEOPENINGBALANCE'
-    );
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V235__add_ugd_template_id_m_hook.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V235__add_ugd_template_id_m_hook.sql
deleted file mode 100644
index 86b5ccc..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V235__add_ugd_template_id_m_hook.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_hook` ADD COLUMN `ugd_template_id` BIGINT NULL;
-ALTER TABLE `m_hook` ADD CONSTRAINT `fk_ugd_template_id` FOREIGN KEY (`ugd_template_id`) REFERENCES `m_template` (`id`);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V236__individual_collection_sheet_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V236__individual_collection_sheet_permissions.sql
deleted file mode 100644
index 6b9fe21..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V236__individual_collection_sheet_permissions.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('collection_sheet', 'READ_COLLECTIONSHEET', 'COLLECTIONSHEET', 'READ', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('collection_sheet', 'SAVE_COLLECTIONSHEET', 'COLLECTIONSHEET', 'SAVE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V237__add_threshold_config_for_last_instalment.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V237__add_threshold_config_for_last_instalment.sql
deleted file mode 100644
index c0a87b8..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V237__add_threshold_config_for_last_instalment.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `principal_threshold_for_last_instalment` DECIMAL(5,2) NOT NULL DEFAULT '50';
-
-update m_product_loan pl set pl.principal_threshold_for_last_instalment = 0 where pl.allow_multiple_disbursals = 0;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V238__update_staff_display_name_length.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V238__update_staff_display_name_length.sql
deleted file mode 100644
index 3f36288..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V238__update_staff_display_name_length.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_staff`
-    ALTER `display_name` DROP DEFAULT;
-ALTER TABLE `m_staff`
-    CHANGE COLUMN `display_name` `display_name` VARCHAR(102) NOT NULL AFTER `lastname`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V239__Loan_Transaction_Receipt.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V239__Loan_Transaction_Receipt.sql
deleted file mode 100644
index d8cd471..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V239__Loan_Transaction_Receipt.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO stretchy_report ( report_name, report_type, report_subtype, report_category, report_sql, description, core_report, use_report) VALUES ('Loan Transaction Receipt', 'Pentaho', NULL, NULL, NULL, NULL, 0, 1);
-INSERT INTO stretchy_report_parameter ( report_id, parameter_id, report_parameter_name) VALUES ( (select sr.id from stretchy_report sr where sr.report_name='Loan Transaction Receipt'), (select sp.id from stretchy_parameter sp where sp.parameter_name='transactionId'), 'transactionId');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V23__remove-enable-disable-configuration-for-client-group-status.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V23__remove-enable-disable-configuration-for-client-group-status.sql
deleted file mode 100644
index 5bc158a..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V23__remove-enable-disable-configuration-for-client-group-status.sql
+++ /dev/null
@@ -1,23 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-DELETE FROM `c_configuration` WHERE `name`='allow-pending-client-status';
-DELETE FROM `c_configuration` WHERE `name`='allow-pending-group-status';
-
-ALTER TABLE `m_client` DROP COLUMN `is_deleted`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V240__arrears_aging_config_for_interest_recalculation.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V240__arrears_aging_config_for_interest_recalculation.sql
deleted file mode 100644
index 467c4ec..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V240__arrears_aging_config_for_interest_recalculation.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan_recalculation_details`
-    ADD COLUMN `arrears_based_on_original_schedule` tinyint NOT NULL DEFAULT '0';
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `account_moves_out_of_npa_only_on_arrears_completion` tinyint NOT NULL DEFAULT '0';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V241__fixed_emi_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V241__fixed_emi_changes.sql
deleted file mode 100644
index 0896ce3..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V241__fixed_emi_changes.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan`
-    ADD COLUMN `can_define_fixed_emi_amount` tinyint NOT NULL DEFAULT '0',
-    ADD COLUMN `instalment_amount_in_multiples_of` DECIMAL(19,6) NULL DEFAULT NULL;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V242__entitytoentitymappingrelation.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V242__entitytoentitymappingrelation.sql
deleted file mode 100644
index 447f168..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V242__entitytoentitymappingrelation.sql
+++ /dev/null
@@ -1,57 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_entity_relation` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `from_entity_type` INT NOT NULL,
-    `to_entity_type` INT NOT NULL,
-    `code_name` VARCHAR(50) NOT NULL,
-    PRIMARY KEY (`id`),
-    UNIQUE INDEX `from_entity_type_to_entity_type_code_name` (`from_entity_type`, `to_entity_type`, `code_name`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB
-AUTO_INCREMENT=1
-;
-
-CREATE TABLE `m_entity_to_entity_mapping` (
-    `id` BIGINT NOT NULL AUTO_INCREMENT,
-    `rel_id` BIGINT NOT NULL DEFAULT '0',
-    `from_id` BIGINT NOT NULL DEFAULT '0',
-    `to_id` BIGINT UNSIGNED NOT NULL,
-    `start_date` DATE NULL DEFAULT NULL,
-    `end_date` DATE NULL DEFAULT NULL,
-    PRIMARY KEY (`id`),
-    UNIQUE INDEX `rel_id_from_id_to_id` (`rel_id`, `from_id`, `to_id`),
-    CONSTRAINT `FK__rel_id_m_entity_relation_id` FOREIGN KEY (`rel_id`) REFERENCES `m_entity_relation` (`id`)
-)
-COLLATE='utf8mb4_general_ci'
-ENGINE=InnoDB
-AUTO_INCREMENT=1
-;
-
-INSERT INTO `m_entity_relation` (`from_entity_type`, `to_entity_type`, `code_name`) VALUES (1, 2, 'office_access_to_loan_products');
-INSERT INTO `m_entity_relation` (`from_entity_type`, `to_entity_type`, `code_name`) VALUES (1, 3, 'office_access_to_savings_products');
-INSERT INTO `m_entity_relation` (`from_entity_type`, `to_entity_type`, `code_name`) VALUES (1, 4, 'office_access_to_fees/charges');
-INSERT INTO `m_entity_relation` (`from_entity_type`, `to_entity_type`, `code_name`) VALUES (5, 2, 'role_access_to_loan_products');
-INSERT INTO `m_entity_relation` (`from_entity_type`, `to_entity_type`, `code_name`) VALUES (5, 3, 'role_access_to_savings_products');
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('infrastructure', 'CREATE_ENTITYMAPPING', 'ENTITYMAPPING', 'CREATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('infrastructure', 'UPDATE_ENTITYMAPPING', 'ENTITYMAPPING', 'UPDATE', 0);
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('infrastructure', 'DELETE_ENTITYMAPPING', 'ENTITYMAPPING', 'DELETE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V243__alter_loan_disbursement_details.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V243__alter_loan_disbursement_details.sql
deleted file mode 100644
index abbfe36..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V243__alter_loan_disbursement_details.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan_disbursement_detail`
-    DROP COLUMN approved_principal;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V244__staff_assignment_history_table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V244__staff_assignment_history_table.sql
deleted file mode 100644
index 12f97f9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V244__staff_assignment_history_table.sql
+++ /dev/null
@@ -1,41 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE IF NOT EXISTS `m_staff_assignment_history` (
-`id` BIGINT NOT NULL AUTO_INCREMENT,
-`centre_id` BIGINT DEFAULT NULL,
-`staff_id` BIGINT NOT NULL,
-`start_date` date NOT NULL,
-`end_date` date DEFAULT NULL,
-`createdby_id` BIGINT DEFAULT NULL,
-`created_date` datetime DEFAULT NULL,
-`lastmodified_date` datetime DEFAULT NULL,
-`lastmodifiedby_id` BIGINT DEFAULT NULL,
-PRIMARY KEY (`id`),
-KEY `FK_m_staff_assignment_history_centre_id_m_group` (`centre_id`),
-KEY `FK_m_staff_assignment_history_m_staff` (`staff_id`),
-CONSTRAINT `FK_m_staff_assignment_history_centre_id_m_group` FOREIGN KEY (`centre_id`) REFERENCES `m_group` (`id`),
-CONSTRAINT `FK_m_staff_assignment_history_m_staff` FOREIGN KEY (`staff_id`) REFERENCES `m_staff` (`id`)
-);
-INSERT INTO stretchy_parameter ( parameter_name, parameter_variable, parameter_label, parameter_displayType, parameter_FormatType, parameter_default, special, selectOne, selectAll, parameter_sql, parent_id) VALUES ('selectCenterId', 'centerId', 'Enter Center Id', 'text', 'string', 'n/a', NULL, NULL, NULL, NULL, NULL);
-INSERT INTO stretchy_report ( report_name, report_type, report_subtype, report_category, report_sql, description, core_report, use_report) VALUES ( 'Staff Assignment History', 'Pentaho', NULL, NULL, NULL, NULL, 0, 1);
-INSERT INTO stretchy_report_parameter ( report_id, parameter_id, report_parameter_name)
-VALUES ((select sr.id from stretchy_report sr where sr.report_name='Staff Assignment History'),
-(select sp.id from stretchy_parameter sp where sp.parameter_name='selectCenterId'),
-'centerId');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V245__open_rd_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V245__open_rd_changes.sql
deleted file mode 100644
index 98f1673..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V245__open_rd_changes.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `job` (`name`, `display_name`, `cron_expression`, `create_time`) VALUES ('Generate Mandatory Savings Schedule', 'Generate Mandatory Savings Schedule', '0 5 0 1/1 * ? *', now());
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V246__drop_group_client_foreign_key_from_m_loan.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V246__drop_group_client_foreign_key_from_m_loan.sql
deleted file mode 100644
index 4152c46..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V246__drop_group_client_foreign_key_from_m_loan.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_loan`
-    DROP FOREIGN KEY `fk_m_group_client_001`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V247__consistency_wrt_spelling_principalThresholdForLastInstalment.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V247__consistency_wrt_spelling_principalThresholdForLastInstalment.sql
deleted file mode 100644
index 62fcceb..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V247__consistency_wrt_spelling_principalThresholdForLastInstalment.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-ALTER TABLE `m_product_loan`
-    CHANGE COLUMN `principal_threshold_for_last_instalment` `principal_threshold_for_last_installment` DECIMAL(5,2) NOT NULL DEFAULT '50.00' AFTER `hold_guarantee_funds`;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V248__added_password_never_expired_to_User.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V248__added_password_never_expired_to_User.sql
deleted file mode 100644
index 933ed0f..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V248__added_password_never_expired_to_User.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE  `m_appuser` ADD  `password_never_expires` TINYINT NOT NULL DEFAULT  '0' COMMENT  'define if the password, should be check for validity period or not';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V249__workingdays_permissions.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V249__workingdays_permissions.sql
deleted file mode 100644
index 77c2e1d..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V249__workingdays_permissions.sql
+++ /dev/null
@@ -1,52 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO  `m_permission` (
-`grouping` ,
-`code` ,
-`entity_name` ,
-`action_name` ,
-`can_maker_checker`
-)
-VALUES (
- 'organisation',  'READ_WORKINGDAYS',  'WORKINGDAYS',  'READ',  '0'
-);
-
-
-INSERT INTO  `m_permission` (
-`grouping` ,
-`code` ,
-`entity_name` ,
-`action_name` ,
-`can_maker_checker`
-)
-VALUES (
- 'organisation',  'UPDATE_WORKINGDAYS',  'WORKINGDAYS',  'UPDATE',  '0'
-);
-
-INSERT INTO  `m_permission` (
-`grouping` ,
-`code` ,
-`entity_name` ,
-`action_name` ,
-`can_maker_checker`
-)
-VALUES (
- 'organisation',  'UPDATE_WORKINGDAYS_CHECKER',  'WORKINGDAYS',  'UPDATE_CHECKER',  '0'
-);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V24__add-group-client-foreign-key-constraint-in-loan-table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V24__add-group-client-foreign-key-constraint-in-loan-table.sql
deleted file mode 100644
index 2cdaf47..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V24__add-group-client-foreign-key-constraint-in-loan-table.sql
+++ /dev/null
@@ -1,26 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-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) ;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V250__password_validation_policy.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V250__password_validation_policy.sql
deleted file mode 100644
index 0442935..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V250__password_validation_policy.sql
+++ /dev/null
@@ -1,57 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-
-CREATE TABLE IF NOT EXISTS `m_password_validation_policy` (
-  `id` INT NOT NULL AUTO_INCREMENT,
-  `regex` text NOT NULL,
-  `description` text NOT NULL,
-  `active` TINYINT NOT NULL DEFAULT '0',
-  PRIMARY KEY (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4 AUTO_INCREMENT=1 ;
-
-
-INSERT INTO `m_password_validation_policy` (
-`id` ,
-`regex` ,
-`description` ,
-`active`
-)
-VALUES (
-NULL ,  '^.{1,50}$',  'Password most be at least 1 character and not more that 50 characters long',  '1'
-);
-
-INSERT INTO `m_password_validation_policy` (
-`id` ,
-`regex` ,
-`description` ,
-`active`
-)
-VALUES (
-NULL ,  '^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\\s).{6,50}$',  'Password must be at least 6 characters, no more than 50 characters long, must include at least one upper case letter, one lower case letter, one numeric digit and no space',  '0'
-);
-
-INSERT INTO m_permission (`grouping`, code, entity_name, action_name, can_maker_checker)
-VALUE ("authorisation","READ_PASSWORD_PREFERENCES","PASSWORD_PREFERENCES","READ",0);
-
-INSERT INTO m_permission (`grouping`, code, entity_name, action_name, can_maker_checker)
-VALUE ("authorisation","UPDATE_PASSWORD_PREFERENCES","PASSWORD_PREFERENCES","UPDATE",0);
-
-INSERT INTO m_permission (`grouping`, code, entity_name, action_name, can_maker_checker)
-VALUE ("authorisation","UPDATE_PASSWORD_PREFERENCES_CHECKER","PASSWORD_PREFERENCES","UPDATE_CHECKER",0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V251__paymentType_table.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V251__paymentType_table.sql
deleted file mode 100644
index 937e5d9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V251__paymentType_table.sql
+++ /dev/null
@@ -1,65 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_payment_type` (
-    `id` INT NOT NULL AUTO_INCREMENT,
-    `value` VARCHAR(100) NULL DEFAULT NULL,
-    `description` VARCHAR(500) NULL DEFAULT NULL,
-    `is_cash_payment` tinyint NULL DEFAULT '0',
-    `order_position` INT NOT NULL DEFAULT '0',
-    PRIMARY KEY (`id`)
-)
-COLLATE='utf8mb4_general_ci';
-
-INSERT INTO m_payment_type (id,value,description,order_position)
-SELECT id,code_value,code_description,order_position
-FROM m_code_value
-where code_id in
-(select mc.id
-from m_code mc where mc.code_name='PaymentType'
-);
-
-ALTER TABLE `m_payment_detail`
-    DROP FOREIGN KEY `FK_m_payment_detail_m_code_value`;
-
-ALTER TABLE `m_payment_detail`
-    CHANGE COLUMN `payment_type_cv_id` `payment_type_id` INT NULL DEFAULT NULL AFTER `id`;
-
-ALTER TABLE `m_payment_detail`
-    ADD CONSTRAINT `FK_m_payment_detail_m_payment_type` FOREIGN KEY (`payment_type_id`) REFERENCES `m_payment_type` (`id`);
-
-ALTER TABLE `acc_product_mapping`
-    DROP FOREIGN KEY `FK_acc_product_mapping_m_code_value`;
-
-ALTER TABLE `acc_product_mapping`
-    ADD CONSTRAINT `FK_acc_product_mapping_m_payment_type` FOREIGN KEY (`payment_type`) REFERENCES `m_payment_type` (`id`);
-
-DELETE from m_code_value
-WHERE
-m_code_value.code_id in
-(SELECT mc.id
-FROM m_code mc where mc.code_name='PaymentType' );
-
-DELETE FROM m_code WHERE code_name="PaymentType";
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'CREATE_PAYMENTTYPE', 'PAYMENTTYPE', 'CREATE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'UPDATE_PAYMENTTYPE', 'PAYMENTTYPE', 'UPDATE', 0);
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES ('portfolio', 'DELETE_PAYMENTTYPE', 'PAYMENTTYPE', 'DELETE', 0);
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V252__bug_fix_teller_cash_management.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V252__bug_fix_teller_cash_management.sql
deleted file mode 100644
index 53a40db..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V252__bug_fix_teller_cash_management.sql
+++ /dev/null
@@ -1,32 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-UPDATE m_permission  SET
-action_name="UPDATE"
-WHERE
-code = "UPDATE_TELLER";
-
-INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`) VALUES ('cash_mgmt', 'DELETE_TELLER', 'TELLER', 'DELETE');
-
-
-ALTER TABLE `m_cashier_transactions`
-    DROP FOREIGN KEY `FK_m_teller_transactions_m_cashiers`;
-
-ALTER TABLE `m_cashier_transactions`
-    ADD CONSTRAINT `FK_m_teller_transactions_m_cashiers` FOREIGN KEY (`cashier_id`) REFERENCES `m_cashiers` (`id`) ON UPDATE CASCADE ON DELETE CASCADE;
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V253__product_loan_configurable_attributes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V253__product_loan_configurable_attributes.sql
deleted file mode 100644
index 9edfaf0..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V253__product_loan_configurable_attributes.sql
+++ /dev/null
@@ -1,40 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-CREATE TABLE `m_product_loan_configurable_attributes` (
-  `id` BIGINT NOT NULL AUTO_INCREMENT,
-  `loan_product_id` BIGINT NOT NULL,
-  `amortization_method_enum` TINYINT NOT NULL DEFAULT '1',
-  `interest_method_enum` TINYINT NOT NULL DEFAULT '1',
-  `loan_transaction_strategy_id` TINYINT NOT NULL DEFAULT '1',
-  `interest_calculated_in_period_enum` TINYINT NOT NULL DEFAULT '1',
-  `arrearstolerance_amount` TINYINT NOT NULL DEFAULT '1',
-  `repay_every` TINYINT NOT NULL DEFAULT '1',
-  `moratorium` TINYINT NOT NULL DEFAULT '1',
-  `grace_on_arrears_ageing` TINYINT NOT NULL DEFAULT '1',
-  PRIMARY KEY (`id`),
-  KEY `fk_m_product_loan_configurable_attributes_0001` (`loan_product_id`),
-  CONSTRAINT `fk_m_product_loan_configurable_attributes_0001` FOREIGN KEY (`loan_product_id`) REFERENCES `m_product_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
-
-
- INSERT into `m_product_loan_configurable_attributes`
-(loan_product_id,amortization_method_enum,interest_method_enum,loan_transaction_strategy_id,
-interest_calculated_in_period_enum,arrearstolerance_amount,repay_every,moratorium,grace_on_arrears_ageing)
-(select pl.id,'1','1','1','1','1','1','1','1' from `m_product_loan` pl );
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V254__General_Ledger_Report.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V254__General_Ledger_Report.sql
deleted file mode 100644
index b71c6c9..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V254__General_Ledger_Report.sql
+++ /dev/null
@@ -1,42 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('GeneralLedgerReport', 'Pentaho', NULL, 'Accounting', NULL, NULL, 0, 1);
-
-INSERT INTO `stretchy_parameter` (`parameter_name`, `parameter_variable`, `parameter_label`, `parameter_displayType`, `parameter_FormatType`, `parameter_default`, `special`, `selectOne`, `selectAll`, `parameter_sql`, `parent_id`) VALUES ('SelectGLAccountNO', 'GLAccountNO', 'GLAccountNO', 'select', 'number', '0', NULL, NULL, NULL, '\r\n\r\n\r\n\r\n\r\n(select id aid,name aname\r\nfrom acc_gl_account)\r\nunion\r\n(select -1,\'ALL\')       \r\norder by 1                                      [...]
-
-INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES
- ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='SelectGLAccountNO'),
-  'Account');
-
-   INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES
- ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateselect'),
-  'ondate');
-
-    INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES
- ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateselect'),
-  'todate');
-
-   INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES
- ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'),
- (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'),
-  'office');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V255__pre_close_interest_period_config.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V255__pre_close_interest_period_config.sql
deleted file mode 100644
index 5080f9b..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V255__pre_close_interest_period_config.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_product_loan_recalculation_details`
-    ADD COLUMN `pre_close_interest_calculation_strategy` SMALLINT NOT NULL DEFAULT '1';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V256__Update script for General_Ledger_report.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V256__Update script for General_Ledger_report.sql
deleted file mode 100644
index 9bc1b4f..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V256__Update script for General_Ledger_report.sql	
+++ /dev/null
@@ -1,51 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-update stretchy_report_parameter
-set report_parameter_name='account'
-where report_id = (select stretchy_report.id from stretchy_report where report_name='GeneralLedgerReport')
-and parameter_id=(select p.id from stretchy_parameter p where parameter_name='SelectGLAccountNO');
-
-
-update stretchy_report_parameter
-set report_parameter_name='fromDate'
-where report_id =(select stretchy_report.id from stretchy_report where report_name='GeneralLedgerReport')
-and parameter_id=(select p.id from stretchy_parameter p where parameter_name='startDateSelect');
-
-update stretchy_report_parameter
-set report_parameter_name='toDate'
-where report_id=(select stretchy_report.id from stretchy_report where report_name='GeneralLedgerReport')
-and parameter_id=(select p.id from stretchy_parameter p where parameter_name='endDateSelect');
-
-update stretchy_report_parameter
-set report_parameter_name='branch'
-where report_id=(select stretchy_report.id from stretchy_report where report_name='GeneralLedgerReport')
-and parameter_id=(select p.id from stretchy_parameter p where parameter_name='OfficeIdSelectOne');
-
-INSERT INTO `m_permission` (
-`grouping` ,
-`code` ,
-`entity_name` ,
-`action_name` ,
-`can_maker_checker`
-) VALUES ('report', 'READ_General Ledger Report', 'General Ledger Report', 'READ', 0);
-
-update `stretchy_parameter`
-set `parameter_sql` = 'select id aid,name aname\r\nfrom acc_gl_account'
-where stretchy_parameter.parameter_name='SelectGLAccountNO';
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V257__staff_image_association.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V257__staff_image_association.sql
deleted file mode 100644
index fb31d9e..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V257__staff_image_association.sql
+++ /dev/null
@@ -1,35 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
--- KIND, either express or implied. See the License for the
--- specific language governing permissions and limitations
--- under the License.
---
-
-ALTER TABLE `m_staff`
-    ADD COLUMN `image_id` BIGINT NULL,
-    ADD CONSTRAINT `FK_m_staff_m_image` FOREIGN KEY (`image_id`) REFERENCES `m_image` (`id`);
-
-INSERT INTO m_permission (
-`grouping` ,
-code ,
-entity_name ,
-action_name ,
-can_maker_checker
-) VALUES
-('portfolio', 'READ_STAFFIMAGE', 'STAFFIMAGE', 'READ', '0'),
-('portfolio', 'CREATE_STAFFIMAGE', 'STAFFIMAGE', 'CREATE', '1'),
-('portfolio', 'CREATE_STAFFIMAGE_CHECKER', 'STAFFIMAGE', 'CREATE', '0'),
-('portfolio', 'DELETE_STAFFIMAGE', 'STAFFIMAGE', 'DELETE', '1'),
-('portfolio', 'DELETE_STAFFIMAGE_CHECKER', 'STAFFIMAGE', 'DELETE', '0');
diff --git a/fineract-provider/src/main/resources/sql/migrations/core_db/V258__interest_compounding_changes.sql b/fineract-provider/src/main/resources/sql/migrations/core_db/V258__interest_compounding_changes.sql
deleted file mode 100644
index 63497f8..0000000
--- a/fineract-provider/src/main/resources/sql/migrations/core_db/V258__interest_compounding_changes.sql
+++ /dev/null
@@ -1,29 +0,0 @@
---
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache License, Version 2.0 (the
--- "License"); you may not use this file except in compliance
--- with the License. You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing,
--- software distributed under the License is distributed on an
--- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
... 11173 lines suppressed ...