Merge remote-tracking branch 'airsonic/pr/855'

master
Andrew DeMaria 6 years ago
commit adc224147a
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 6
      airsonic-main/src/main/resources/liquibase/10.2/changelog.xml
  2. 27
      airsonic-main/src/main/resources/liquibase/10.2/setup-hsqldb-checkpoint-defrag.xml
  3. 1
      airsonic-main/src/main/resources/liquibase/db-changelog.xml

@ -0,0 +1,6 @@
<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">
<include file="setup-hsqldb-checkpoint-defrag.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

@ -0,0 +1,27 @@
<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="setup-hsqldb-checkpoint-defrag" author="fxthomas">
<preConditions onFail="MARK_RAN">
<dbms type="hsqldb" />
</preConditions>
<sql>
CHECKPOINT DEFRAG;
<comment>Defragment the database before enabling auto defrag, so that the biggest part of the work is done during migration.</comment>
</sql>
<sql>
SET LOGSIZE 64;
<comment>Automatically run a CHECKPOINT when the log is above 64MB.</comment>
</sql>
<sql>
SET CHECKPOINT DEFRAG 32;
<comment>Automatically defragment on CHECKPOINT when the wasted space is above 32MB.</comment>
</sql>
<rollback></rollback>
</changeSet>
</databaseChangeLog>

@ -11,4 +11,5 @@
<include file="6.2/changelog.xml" relativeToChangelogFile="true"/>
<include file="6.3/changelog.xml" relativeToChangelogFile="true"/>
<include file="6.4/changelog.xml" relativeToChangelogFile="true"/>
<include file="10.2/changelog.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>

Loading…
Cancel
Save