add database column

This commit is contained in:
Anton Romanov 2018-10-27 23:16:14 +04:00
parent 61c19e5b87
commit 7388b2cb27
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?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="20181027_000000-1">
<preConditions onFail="MARK_RAN">
<not><columnExists columnName="deadline_date" tableName="paper"/></not>
</preConditions>
<addColumn tableName="paper">
<column name="deadline_date" type="TIMESTAMP"/>
</addColumn>
</changeSet>
</databaseChangeLog>

View File

@ -11,4 +11,5 @@
<include file="db/changelog-20180405_110000-schema.xml"/>
<include file="db/changelog-20180428_110000-schema.xml"/>
<include file="db/changelog-20180505_000000-schema.xml"/>
<include file="db/changelog-20181027_000000-schema.xml"/>
</databaseChangeLog>