Skip to content

Commit 9e15e45

Browse files
committed
FINERACT-2181: Remove suboptimal indexes
1 parent 42ff974 commit 9e15e45

File tree

3 files changed

+57
-133
lines changed

3 files changed

+57
-133
lines changed

fineract-loan/src/main/resources/db/changelog/tenant/module/loan/module-changelog-master.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<include relativeToChangelogFile="true" file="parts/1025_store_pre_closure_strategy_to_loan_level.xml"/>
5151
<include relativeToChangelogFile="true" file="parts/1026_add_interest_recognition_flag.xml"/>
5252
<include relativeToChangelogFile="true" file="parts/1027_add_capitalized_income_transaction_type.xml"/>
53-
<include relativeToChangelogFile="true" file="parts/1028_add_missing_indexes.xml"/>
53+
<include relativeToChangelogFile="true" file="parts/1028_remove_suboptimal_indexes.xml"/>
5454
<include relativeToChangelogFile="true" file="parts/1029_add_installment_amount_in_multiples_of_to_loan.xml"/>
5555
<include relativeToChangelogFile="true" file="parts/1030_add_loan_undo_contract_termination_event.xml"/>
5656
</databaseChangeLog>

fineract-loan/src/main/resources/db/changelog/tenant/module/loan/parts/1028_add_missing_indexes.xml

Lines changed: 0 additions & 132 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Licensed to the Apache Software Foundation (ASF) under one
5+
or more contributor license agreements. See the NOTICE file
6+
distributed with this work for additional information
7+
regarding copyright ownership. The ASF licenses this file
8+
to you under the Apache License, Version 2.0 (the
9+
"License"); you may not use this file except in compliance
10+
with the License. You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0
13+
14+
Unless required by applicable law or agreed to in writing,
15+
software distributed under the License is distributed on an
16+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17+
KIND, either express or implied. See the License for the
18+
specific language governing permissions and limitations
19+
under the License.
20+
21+
-->
22+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
23+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
25+
26+
<changeSet author="fineract" id="drop-index-1" runInTransaction="false">
27+
<preConditions onFail="MARK_RAN">
28+
<indexExists indexName="m_loan_transaction_transaction_type_enum_index"/>
29+
</preConditions>
30+
<dropIndex indexName="m_loan_transaction_transaction_type_enum_index" tableName="m_loan_transaction"/>
31+
</changeSet>
32+
<changeSet author="fineract" id="drop-index-2" runInTransaction="false">
33+
<preConditions onFail="MARK_RAN">
34+
<indexExists indexName="m_loan_transaction_transaction_date_index"/>
35+
</preConditions>
36+
<dropIndex indexName="m_loan_transaction_transaction_date_index" tableName="m_loan_transaction"/>
37+
</changeSet>
38+
<changeSet author="fineract" id="drop-index-3" runInTransaction="false">
39+
<preConditions onFail="MARK_RAN">
40+
<indexExists indexName="m_loan_transaction_created_on_utc_index"/>
41+
</preConditions>
42+
<dropIndex indexName="m_loan_transaction_created_on_utc_index" tableName="m_loan_transaction"/>
43+
</changeSet>
44+
<changeSet author="fineract" id="drop-index-4" runInTransaction="false">
45+
<preConditions onFail="MARK_RAN">
46+
<indexExists indexName="m_loan_transaction_is_reversed_index"/>
47+
</preConditions>
48+
<dropIndex indexName="m_loan_transaction_is_reversed_index" tableName="m_loan_transaction"/>
49+
</changeSet>
50+
<changeSet author="fineract" id="drop-index-5" runInTransaction="false">
51+
<preConditions onFail="MARK_RAN">
52+
<indexExists indexName="m_loan_transaction_submitted_on_date_index"/>
53+
</preConditions>
54+
<dropIndex indexName="m_loan_transaction_submitted_on_date_index" tableName="m_loan_transaction"/>
55+
</changeSet>
56+
</databaseChangeLog>

0 commit comments

Comments
 (0)