| <?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="1"> |
| <createTable tableName="m_external_event"> |
| <column autoIncrement="true" name="id" type="BIGINT"> |
| <constraints nullable="false" primaryKey="true"/> |
| </column> |
| <column name="type" type="VARCHAR(100)"> |
| <constraints nullable="false"/> |
| </column> |
| <column name="data" type="BLOB"> |
| <constraints nullable="false"/> |
| </column> |
| <column name="created_at" type="timestamp"> |
| <constraints nullable="false"/> |
| </column> |
| <column name="status" type="VARCHAR(100)"> |
| <constraints nullable="false"/> |
| </column> |
| <column name="sent_at" type="timestamp"> |
| <constraints nullable="false"/> |
| </column> |
| <column name="idempotency_key" type="uuid"> |
| <constraints nullable="false"/> |
| </column> |
| <column name="business_date" type="date"> |
| <constraints nullable="false"/> |
| </column> |
| </createTable> |
| </changeSet> |
| <changeSet author="fineract" id="2"> |
| <createIndex indexName="m_external_event_status_index" tableName="m_external_event"> |
| <column name="status"/> |
| </createIndex> |
| </changeSet> |
| <changeSet author="fineract" id="3"> |
| <createIndex indexName="m_external_event_business_date_index" tableName="m_external_event"> |
| <column name="business_date"/> |
| </createIndex> |
| </changeSet> |
| <changeSet author="fineract" id="4"> |
| <createTable tableName="m_external_event_configuration"> |
| <column name="type" type="VARCHAR(100)"> |
| <constraints nullable="false" primaryKey="true"/> |
| </column> |
| <column name="enabled" type="boolean"> |
| <constraints nullable="false"/> |
| </column> |
| </createTable> |
| </changeSet> |
| </databaseChangeLog> |