Skip to content

Instantly share code, notes, and snippets.

@entzik
Created May 30, 2018 21:53
Show Gist options
  • Save entzik/0872a01fe14768e586e321e281f20d0d to your computer and use it in GitHub Desktop.
Save entzik/0872a01fe14768e586e321e281f20d0d to your computer and use it in GitHub Desktop.
liqubase change log
<?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"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="2" author="ek">
<createTable tableName="climate_reading">
<column name="id" type="varchar(40)">
<constraints primaryKey="true" primaryKeyName="cr_pk" nullable="false"/>
</column>
<column name="tenant" type="varchar(40)"></column>
<column name="home" type="varchar(40)"></column>
<column name="room" type="varchar(40)"></column>
<column name="timestamp" type="bigint"></column>
<column name="temperature" type="double"></column>
<column name="humidity" type="double"></column>
</createTable>
</changeSet>
</databaseChangeLog>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment