| <?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> |