-
Notifications
You must be signed in to change notification settings - Fork 1
/
updates.xml
31 lines (31 loc) · 1.49 KB
/
updates.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
<changeSet author="mikeo" id="100">
<createTable tableName="contractors">
<column autoIncrement="true" name="contractor_id" type="INTEGER">
<constraints nullable="false" primaryKey="true" primaryKeyName="contractor_pkey"/>
</column>
<column name="first_name" type="VARCHAR(45)">
<constraints nullable="false"/>
</column>
<column name="last_name" type="VARCHAR(45)">
<constraints nullable="false"/>
</column>
<column name="email" type="VARCHAR(50)"/>
<column defaultValueBoolean="true" name="active" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column name="username" type="VARCHAR(16)">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
<changeSet author="mikeo" id="101">
<loadData commentLineStartsWith="#" encoding="UTF-8" file="data/contractors.csv" quotchar=""" separator="," tableName="contractors">
<column header="contractor_id" name="contractor_id" type="NUMERIC"/>
<column header="first_name" name="first_name" type="STRING"/>
<column header="last_name" name="last_name" type="STRING"/>
<column header="email" name="email" type="STRING"/>
<column header="active" name="active" type="BOOLEAN"/>
<column header="username" name="username" type="STRING"/>
</loadData>
<rollback>delete from contractors</rollback>
</changeSet>