Stop using legacy schema version scheme, set it to 100 as the last update

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent d12c790a0e
commit 370089f3e1
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 1
      libresonic-main/src/main/resources/liquibase/legacy/legacy-changelog.xml
  2. 19
      libresonic-main/src/main/resources/liquibase/legacy/schema100.xml

@ -28,4 +28,5 @@
<include file="schema53.xml" relativeToChangelogFile="true"/>
<include file="schema61.xml" relativeToChangelogFile="true"/>
<include file="schema62.xml" relativeToChangelogFile="true"/>
<include file="schema100.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

@ -0,0 +1,19 @@
<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">
<!-- SCHEMA VERSION NO LONGER USED. 100 is the last version. -->
<changeSet id="schema100_001" author="muff1nman">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">select count(*) from version where version = 100</sqlCheck>
</preConditions>
<insert tableName="version">
<column name="version" valueNumeric="100" />
</insert>
<rollback>
<delete tableName="version" >
<where>version = 100</where>
</delete>
</rollback>
</changeSet>
</databaseChangeLog>
Loading…
Cancel
Save