-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdates.xml
More file actions
34 lines (34 loc) · 2.2 KB
/
updates.xml
File metadata and controls
34 lines (34 loc) · 2.2 KB
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
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.7.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.7.xsd">
<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>
</databaseChangeLog>