Skip to content

Commit 33f5c22

Browse files
committed
FINERACT-2481: Remove Pentaho reports from the initial data used by the report table
1 parent 6269cbb commit 33f5c22

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,5 @@
228228
<include file="parts/0207_add_allow_full_term_for_tranche.xml" relativeToChangelogFile="true" />
229229
<include file="parts/0208_trial_balance_summary_with_asset_owner_journal_entry_aggregation_fix.xml" relativeToChangelogFile="true" />
230230
<include file="parts/0209_transaction_summary_with_asset_owner_and_from_asset_owner_id_for_asset_sales.xml" relativeToChangelogFile="true" />
231+
<include file="parts/0210_remove_pentaho_legacy_data.xml" relativeToChangelogFile="true"/>
231232
</databaseChangeLog>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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
25+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd">
26+
27+
<changeSet author="fineract" id="FINERACT-2481-remove-pentaho-metadata">
28+
<delete tableName="m_permission">
29+
<where>LOWER(code) LIKE LOWER('%_PENTAHO')</where>
30+
</delete>
31+
32+
<delete tableName="stretchy_report_parameter">
33+
<where>report_id IN (SELECT id FROM stretchy_report WHERE LOWER(report_type) = LOWER('Pentaho'))</where>
34+
</delete>
35+
36+
<delete tableName="stretchy_report">
37+
<where>LOWER(report_type) = LOWER('Pentaho')</where>
38+
</delete>
39+
</changeSet>
40+
</databaseChangeLog>

0 commit comments

Comments
 (0)