This is an automated email from the ASF dual-hosted git repository.
arnold 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 5c08afec5 FINERACT-1926: Additional indices to investor tables
5c08afec5 is described below
commit 5c08afec5f4aca39df4f1737d15751e51d4e9153
Author: adam.magyari <[email protected]>
AuthorDate: Tue Dec 3 13:47:39 2024 +0100
FINERACT-1926: Additional indices to investor tables
---
.../module/investor/module-changelog-master.xml | 1 +
.../0013_add_additional_asset_owner_indices.xml | 70 ++++++++++++++++++++++
.../db/changelog/tenant/changelog-tenant.xml | 1 +
...57_create_index_m_loan_transaction_relation.xml | 47 +++++++++++++++
4 files changed, 119 insertions(+)
diff --git
a/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml
b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml
index 27860317f..39ea60c98 100644
---
a/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml
+++
b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/module-changelog-master.xml
@@ -34,4 +34,5 @@
<include relativeToChangelogFile="true"
file="parts/0010_external_transafer_status_external_transfer_id_constraints.xml"/>
<include relativeToChangelogFile="true"
file="parts/0011_set_datetime_precision.xml"/>
<include relativeToChangelogFile="true"
file="parts/0012_add_external_asset_owner_transfer_index.xml"/>
+ <include relativeToChangelogFile="true"
file="parts/0013_add_additional_asset_owner_indices.xml"/>
</databaseChangeLog>
diff --git
a/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml
b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml
new file mode 100644
index 000000000..a525afc79
--- /dev/null
+++
b/fineract-investor/src/main/resources/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml
@@ -0,0 +1,70 @@
+<?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
+
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
+
+ <changeSet author="fineract" id="1" runInTransaction="false"
context="postgresql">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <indexExists
tableName="m_external_asset_owner_transfer_loan_mapping"
columnNames="owner_transfer_id"/>
+ </not>
+ </preConditions>
+ <sql>
+ create index concurrently
IDX_e_asset_o_transfer_loan_mapping_owner_transfer_id on
m_external_asset_owner_transfer_loan_mapping(owner_transfer_id);
+ </sql>
+ </changeSet>
+
+ <changeSet author="fineract" id="2" runInTransaction="false"
context="postgresql">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <indexExists
tableName="m_external_asset_owner_transfer_journal_entry_mapping"
columnNames="owner_transfer_id"/>
+ </not>
+ </preConditions>
+ <sql>
+ create index concurrently
IDX_e_asset_o_transfer_journal_entry_mapping_owner_transfer_id on
m_external_asset_owner_transfer_journal_entry_mapping(owner_transfer_id);
+ </sql>
+ </changeSet>
+
+ <changeSet author="fineract" id="3" runInTransaction="false"
context="postgresql">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <indexExists
tableName="m_external_asset_owner_transfer_journal_entry_mapping"
columnNames="journal_entry_id"/>
+ </not>
+ </preConditions>
+ <sql>
+ create index concurrently
IDX_e_asset_o_transfer_journal_entry_mapping_journal_entry_id on
m_external_asset_owner_transfer_journal_entry_mapping(journal_entry_id);
+ </sql>
+ </changeSet>
+
+ <changeSet author="fineract" id="4" runInTransaction="false"
context="postgresql">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <indexExists
tableName="m_external_asset_owner_journal_entry_mapping"
columnNames="journal_entry_id"/>
+ </not>
+ </preConditions>
+ <sql>
+ create index concurrently
IDX_e_asset_o_journal_entry_mapping_journal_entry_id on
m_external_asset_owner_journal_entry_mapping(journal_entry_id);
+ </sql>
+ </changeSet>
+</databaseChangeLog>
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 b01cf4d54..24619ba2d 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
@@ -175,4 +175,5 @@
<include file="parts/0154_add_interest_refund_to_r_enum_value.xml"
relativeToChangelogFile="true" />
<include
file="parts/0155_add_configuration_enable_immediate_charge_accrual_post_maturity.xml"
relativeToChangelogFile="true" />
<include
file="parts/0156_add_disallow_interest_calc_on_past_due_field.xml"
relativeToChangelogFile="true" />
+ <include file="parts/0157_create_index_m_loan_transaction_relation.xml"
relativeToChangelogFile="true" />
</databaseChangeLog>
diff --git
a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml
new file mode 100644
index 000000000..82a73f1c9
--- /dev/null
+++
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml
@@ -0,0 +1,47 @@
+<?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
+
https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
+
+ <changeSet author="fineract" id="1" runInTransaction="false"
context="postgresql">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <indexExists tableName="m_loan_transaction_relation"
columnNames="to_loan_transaction_id"/>
+ </not>
+ </preConditions>
+ <sql>
+ create index concurrently
IDX_M_LOAN_TRANSACTION_RELATION_TO_LOAN_TRANSACTION_ID on
m_loan_transaction_relation(to_loan_transaction_id);
+ </sql>
+ </changeSet>
+ <changeSet author="fineract" id="2" runInTransaction="false"
context="postgresql">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <indexExists tableName="m_loan_transaction_relation"
columnNames="to_loan_charge_id"/>
+ </not>
+ </preConditions>
+ <sql>
+ create index concurrently
IDX_M_LOAN_TRANSACTION_RELATION_TO_LOAN_CHARGE_ID on
m_loan_transaction_relation(to_loan_charge_id);
+ </sql>
+ </changeSet>
+</databaseChangeLog>