You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
<?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="stian">
|
|
<preConditions onFail="MARK_RAN">
|
|
<not>
|
|
<tableExists tableName="workout_state"/>
|
|
</not>
|
|
</preConditions>
|
|
<createTable tableName="workout_state">
|
|
<column name="workout_id" type="CHAR(10)">
|
|
<constraints nullable="false" primaryKey="true"/>
|
|
</column>
|
|
<column name="ws_seconds" type="INT">
|
|
<constraints nullable="false" primaryKey="true"/>
|
|
</column>
|
|
<column name="ws_kcal" type="INT">
|
|
<constraints nullable="true"/>
|
|
</column>
|
|
<column name="ws_level" type="INT">
|
|
<constraints nullable="true"/>
|
|
</column>
|
|
<column name="ws_meters" type="INT">
|
|
<constraints nullable="true"/>
|
|
</column>
|
|
</createTable>
|
|
</changeSet>
|
|
<changeSet id="2" author="stian">
|
|
<addColumn tableName="workout_state">
|
|
<column name="ws_rpm" type="INT">
|
|
<constraints nullable="true"/>
|
|
</column>
|
|
<column name="ws_pulse" type="INT">
|
|
<constraints nullable="true"/>
|
|
</column>
|
|
</addColumn>
|
|
</changeSet>
|
|
</databaseChangeLog>
|