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

adamsaghy 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 1ef6b9d73 FINERACT-1724: Add index to m_loan_transaction_relation
1ef6b9d73 is described below

commit 1ef6b9d739b0d69bcdcb7ce13cea657939aafb59
Author: abraham.menyhart <[email protected]>
AuthorDate: Mon Jul 10 13:14:05 2023 +0200

    FINERACT-1724: Add index to m_loan_transaction_relation
---
 .../db/changelog/tenant/changelog-tenant.xml       |  1 +
 .../0115_create_index_from_loan_transaction_id.xml | 36 ++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git 
a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml 
b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
index c57cf5c3d..f2aaa99e3 100644
--- 
a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
+++ 
b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
@@ -134,4 +134,5 @@
     <include 
file="parts/0112_transaction_summary_with_asset_owner_change_report_sql.xml" 
relativeToChangelogFile="true" />
     <include 
file="parts/0113_transaction_summary_with_asset_owner_report_sql_fix.xml" 
relativeToChangelogFile="true" />
     <include file="parts/0114_create_cob_indices.xml" 
relativeToChangelogFile="true" />
+    <include file="parts/0115_create_index_from_loan_transaction_id.xml" 
relativeToChangelogFile="true" />
 </databaseChangeLog>
diff --git 
a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0115_create_index_from_loan_transaction_id.xml
 
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0115_create_index_from_loan_transaction_id.xml
new file mode 100644
index 000000000..225085806
--- /dev/null
+++ 
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0115_create_index_from_loan_transaction_id.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
+<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog";
+                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+                   
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog 
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd";>
+    <changeSet author="fineract" id="1" runInTransaction="false">
+        <preConditions onFail="MARK_RAN">
+            <not>
+                <indexExists tableName="m_loan_transaction_relation" 
columnNames="from_loan_transaction_id"/>
+            </not>
+        </preConditions>
+        <createIndex 
indexName="IDX_M_LOAN_TRANSACTION_RELATION_FROM_LOAN_TRANSACTION_ID" 
tableName="m_loan_transaction_relation">
+            <column name="from_loan_transaction_id"/>
+        </createIndex>
+    </changeSet>
+
+</databaseChangeLog>

Reply via email to