forked from apache/fineract
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FINERACT-1926: Additional indices to investor tables
- Loading branch information
1 parent
af34f31
commit 5c08afe
Showing
4 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
...ces/db/changelog/tenant/module/investor/parts/0013_add_additional_asset_owner_indices.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...ain/resources/db/changelog/tenant/parts/0157_create_index_m_loan_transaction_relation.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |