FINERACT-1670: Rework command source to store dates in UTC
This commit is contained in:
committed by
Arnold Gálovics
parent
d5ca6baab3
commit
629b9f6d7c
@@ -55,4 +55,5 @@
|
||||
<include file="parts/0033_add_audit_entries_to_loan_repayment_schedule_installment.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0034_add_audit_entries_to_note.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0035_add_audit_entries_to_calendar.xml" relativeToChangelogFile="true"/>
|
||||
<include file="parts/0036_add_audit_entries_and_rework_command_source_datetime_fields.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
<?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="portfolio_command_source-1" context="mysql">
|
||||
<addColumn tableName="m_portfolio_command_source">
|
||||
<column name="made_on_date_utc" type="DATETIME"/>
|
||||
<column name="checked_on_date_utc" type="DATETIME"/>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
<changeSet author="fineract" id="portfolio_command_source-1" context="postgresql">
|
||||
<addColumn tableName="m_portfolio_command_source">
|
||||
<column name="made_on_date_utc" type="TIMESTAMP WITH TIME ZONE"/>
|
||||
<column name="checked_on_date_utc" type="TIMESTAMP WITH TIME ZONE"/>
|
||||
</addColumn>
|
||||
</changeSet>
|
||||
<changeSet id="portfolio_command_source-2" author="fineract">
|
||||
<dropNotNullConstraint tableName="m_portfolio_command_source" columnName="made_on_date" columnDataType="datetime"/>
|
||||
</changeSet>
|
||||
<changeSet id="portfolio_command_source-3" author="fineract" context="mysql">
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<sqlCheck expectedResult="0">select count(*) from m_portfolio_command_source</sqlCheck>
|
||||
</preConditions>
|
||||
<addNotNullConstraint tableName="m_portfolio_command_source" columnName="made_on_date_utc" columnDataType="DATETIME"/>
|
||||
</changeSet>
|
||||
<changeSet id="portfolio_command_source-3" author="fineract" context="postgresql">
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<sqlCheck expectedResult="0">select count(*) from m_portfolio_command_source</sqlCheck>
|
||||
</preConditions>
|
||||
<addNotNullConstraint tableName="m_portfolio_command_source" columnName="made_on_date_utc" columnDataType="TIMESTAMP WITH TIME ZONE"/>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
Reference in New Issue
Block a user