forked from liquibase/liquibase-percona
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-changelog.xml
23 lines (20 loc) · 1013 Bytes
/
test-changelog.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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-3.1.xsd">
<changeSet id="1" author="Alice">
<createTable tableName="person">
<column name="id" type="varchar(255)">
<constraints primaryKey="true"/>
</column>
<column name="parent" type="varchar(255)"/>
</createTable>
</changeSet>
<!-- Special handling of referenced table name needed, see https://bugs.launchpad.net/percona-toolkit/+bug/1393961 -->
<changeSet id="2" author="Alice">
<addForeignKeyConstraint constraintName="fk_person_parent"
referencedTableName="person" referencedColumnNames="id"
baseTableName="person" baseColumnNames="parent"/>
</changeSet>
</databaseChangeLog>