Fineract with ReadOnly tenant database connection
This commit is contained in:
committed by
Arnold Gálovics
parent
7cd9ff879a
commit
2a7d8b9496
+1
@@ -23,4 +23,5 @@
|
||||
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.1.xsd">
|
||||
<include file="parts/0003_reset_postgresql_sequences.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0004_readonly_database_connection.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
<?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.1.xsd">
|
||||
<changeSet author="fineract" id="add-readonly-database-connection-properties" context="tenant_store_db">
|
||||
<addColumn tableName="tenant_server_connections">
|
||||
<column name="readonly_schema_server" type="VARCHAR(100)"/>
|
||||
</addColumn>
|
||||
<addColumn tableName="tenant_server_connections">
|
||||
<column name="readonly_schema_name" type="VARCHAR(100)"/>
|
||||
</addColumn>
|
||||
<addColumn tableName="tenant_server_connections">
|
||||
<column name="readonly_schema_server_port" type="VARCHAR(10)"/>
|
||||
</addColumn>
|
||||
<addColumn tableName="tenant_server_connections">
|
||||
<column name="readonly_schema_username" type="VARCHAR(100)"/>
|
||||
</addColumn>
|
||||
<addColumn tableName="tenant_server_connections">
|
||||
<column name="readonly_schema_password" type="VARCHAR(100)"/>
|
||||
</addColumn>
|
||||
<addColumn tableName="tenant_server_connections">
|
||||
<column name="readonly_schema_connection_parameters" type="TEXT"/>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
+5
@@ -25,6 +25,11 @@
|
||||
<dropForeignKeyConstraint baseTableName="job_run_history" constraintName="scheduledjobsFK"/>
|
||||
</changeSet>
|
||||
<changeSet author="fineract" id="1">
|
||||
<validCheckSum>8:18ed72e1958f7db9c1a0c983ac823ab3</validCheckSum> <!-- checksum withsout delete from history -->
|
||||
<validCheckSum>8:b4a83f9764270372a384616acf066d7c</validCheckSum> <!-- checksum with delete from history -->
|
||||
<sql>
|
||||
DELETE FROM job_run_history WHERE job_id IN (SELECT id FROM job WHERE name IN ('Update loan Summary', 'Update Loan Paid In Advance'))
|
||||
</sql>
|
||||
<delete tableName="job">
|
||||
<where>name='Update loan Summary'</where>
|
||||
</delete>
|
||||
|
||||
Reference in New Issue
Block a user