-
Notifications
You must be signed in to change notification settings - Fork 5
/
liquibase.xml
115 lines (111 loc) · 5.48 KB
/
liquibase.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<changeSet id="m2sysBiometrics-2018-03-14" author="SolDevelo">
<preConditions onFail="MARK_RAN">
<not><tableExists tableName="national_synchronization_failure"/></not>
</preConditions>
<comment>
Creating the table for failures in synchronization with national server.
</comment>
<createTable tableName="national_synchronization_failure">
<column name="national_synchronization_failure_id" type="int" autoIncrement="true">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="uuid" type="char(38)">
<constraints nullable="false" unique="true"/>
</column>
<column name="subject_id" type="varchar(255)">
<constraints nullable="false" unique="false"/>
</column>
<column name="biometric_xml" type="longtext">
<constraints nullable="false" unique="false"/>
</column>
<column name="update_failure" type="boolean" defaultValueBoolean="false">
<constraints nullable="false"/>
</column>
<column name="creator" type="int"/>
<column name="date_changed" type="datetime" />
<column name="date_created" type="datetime">
<constraints nullable="false"/>
</column>
<column name="changed_by" type="varchar(255)" />
<column name="voided" type="boolean" defaultValueBoolean="false">
<constraints nullable="false"/>
</column>
<column name="date_voided" type="datetime" />
<column name="void_reason" type="varchar(255)" />
<column name="voided_by" type="varchar(255)"/>
</createTable>
</changeSet>
<changeSet id="m2sysBiometrics-2018-04-03" author="SolDevelo">
<preConditions onFail="MARK_RAN">
<not><tableExists tableName="temp_fingerprint"/></not>
</preConditions>
<comment>
Creating the table for temporary fingerprints, with the assignment of biometric id with biometric xml (scan result).
</comment>
<createTable tableName="temp_fingerprint">
<column name="temp_fingerprint_id" type="int" autoIncrement="true">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="uuid" type="char(38)">
<constraints nullable="false" unique="true"/>
</column>
<column name="biometric_id" type="varchar(255)">
<constraints nullable="false" unique="true"/>
</column>
<column name="biometric_xml" type="longtext">
<constraints nullable="false" unique="false"/>
</column>
<column name="creator" type="int"/>
<column name="date_changed" type="datetime"/>
<column name="date_created" type="datetime">
<constraints nullable="false"/>
</column>
<column name="changed_by" type="varchar(255)" />
<column name="voided" type="boolean" defaultValueBoolean="false">
<constraints nullable="false"/>
</column>
<column name="date_voided" type="datetime" />
<column name="void_reason" type="varchar(255)" />
<column name="voided_by" type="varchar(255)"/>
</createTable>
</changeSet>
<changeSet id="m2sysBiometrics-2021-07-03" author="Stanslaus Odhiambo">
<preConditions onFail="MARK_RAN">
<not><tableExists tableName="sync_fingerprint"/></not>
</preConditions>
<comment>
Creating the table for sync fingerprint workflow, with the assignment of biometric id and biometric xml (scan result). Scheduled task to try sync with National FP every 12 hours
</comment>
<createTable tableName="sync_fingerprint">
<column name="sync_fingerprint_id" type="int" autoIncrement="true">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="uuid" type="char(38)">
<constraints nullable="false" unique="true"/>
</column>
<column name="biometric_id" type="varchar(255)">
<constraints nullable="false" unique="true"/>
</column>
<column name="biometric_xml" type="longtext">
<constraints nullable="false" unique="true"/>
</column>
<column name="creator" type="int"/>
<column name="date_changed" type="datetime"/>
<column name="date_created" type="datetime">
<constraints nullable="false"/>
</column>
<column name="changed_by" type="varchar(255)" />
<column name="voided" type="boolean" defaultValueBoolean="false">
<constraints nullable="false"/>
</column>
<column name="date_voided" type="datetime" />
<column name="void_reason" type="varchar(255)" />
<column name="voided_by" type="varchar(255)"/>
</createTable>
</changeSet>
</databaseChangeLog>