26 lines
1.3 KiB
XML
26 lines
1.3 KiB
XML
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
|
<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 author="orion" id="20181111_000000-1">
|
|
<preConditions onFail="MARK_RAN">
|
|
<not><columnExists columnName="period" tableName="event"/></not>
|
|
</preConditions>
|
|
<addColumn tableName="event">
|
|
<column name="period" type="varchar(50)"/>
|
|
</addColumn>
|
|
</changeSet>
|
|
<changeSet author="orion" id="20181111_000000-2">
|
|
<preConditions onFail="MARK_RAN">
|
|
<not><columnExists columnName="child_id" tableName="event"/></not>
|
|
</preConditions>
|
|
<addColumn tableName="event">
|
|
<column name="child_id" type="integer"/>
|
|
</addColumn>
|
|
</changeSet>
|
|
<changeSet author="orion" id="20181111_000000-3">
|
|
<addForeignKeyConstraint baseTableName="event" baseColumnNames="child_id"
|
|
constraintName="fk_event_child_event" referencedTableName="event"
|
|
referencedColumnNames="id"/>
|
|
</changeSet>
|
|
</databaseChangeLog> |