This is an automated email from the ASF dual-hosted git repository.

arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git


The following commit(s) were added to refs/heads/develop by this push:
     new 48c353fb8 Database storage for events
48c353fb8 is described below

commit 48c353fb8f4b7c9d323e2b21faea83d2cb5346db
Author: taskain7 <[email protected]>
AuthorDate: Fri Aug 26 04:37:13 2022 +0200

    Database storage for events
---
 .../db/changelog/tenant/changelog-tenant.xml       |  1 +
 .../tenant/parts/0043_add_external_event_table.xml | 73 ++++++++++++++++++++++
 2 files changed, 74 insertions(+)

diff --git 
a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml 
b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
index 8d9911947..c097c2c69 100644
--- 
a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
+++ 
b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
@@ -62,4 +62,5 @@
     <include file="parts/0040_add_delinquency_tags_job.xml" 
relativeToChangelogFile="true"/>
     <include file="parts/0041_add_update_business_step_permission.xml" 
relativeToChangelogFile="true"/>
     <include file="parts/0042_table_report_query_fix.xml" 
relativeToChangelogFile="true"/>
+    <include file="parts/0043_add_external_event_table.xml" 
relativeToChangelogFile="true"/>
 </databaseChangeLog>
diff --git 
a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0043_add_external_event_table.xml
 
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0043_add_external_event_table.xml
new file mode 100644
index 000000000..867eeb37f
--- /dev/null
+++ 
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0043_add_external_event_table.xml
@@ -0,0 +1,73 @@
+<?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>

Reply via email to