/
liquibase_bahmni_reports.xml
52 lines (50 loc) · 2.11 KB
/
liquibase_bahmni_reports.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<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-2.0.xsd">
<changeSet id="dump_quartz_tables" author="Jaswanth, Alagesan">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="QRTZ_JOB_DETAILS"/>
</not>
</preConditions>
<comment>creating quartz tables</comment>
<sqlFile path="sql/quartz/tables_mysql_innodb.sql"/>
</changeSet>
<changeSet id="create_scheduled_report_table" author="Jaswanth, Alagesan">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="scheduled_report"/>
</not>
</preConditions>
<createTable tableName="scheduled_report">
<column name="id" type="varchar(60)">
<constraints primaryKey="true"/>
</column>
<column name="name" type="varchar(256)">
<constraints nullable="false"/>
</column>
<column name="user" type="varchar(70)">
<constraints nullable="false"/>
</column>
<column name="file_name" type="varchar(256)">
<constraints nullable="true"/>
</column>
<column name="start_date" type="date"/>
<column name="end_date" type="date"/>
<column name="status" type="varchar(20)">
<constraints nullable="false"/>
</column>
<column name="format" type="varchar(128)">
<constraints nullable="false"/>
</column>
<column name="request_datetime" type="datetime">
<constraints nullable="false"/>
</column>
<column name="error_message" type="varchar(4000)">
<constraints nullable="true"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>