Updated CHECKPOINT / DEFRAG syntax for HSQLDB 2.

Signed-off-by: Iwao AVE! <harawata@gmail.com>
master
Iwao AVE! 6 years ago committed by François-Xavier Thomas
parent c0f3606091
commit c79c02d449
  1. 10
      airsonic-main/src/main/resources/liquibase/10.2/setup-hsqldb-checkpoint-defrag.xml

@ -4,6 +4,8 @@
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">
<validCheckSum>7:890e52428bbc2a792fea1e026a4b7610</validCheckSum>
<preConditions onFail="MARK_RAN">
<dbms type="hsqldb" />
</preConditions>
@ -13,12 +15,12 @@
<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>
SET FILES LOG SIZE 64;
<comment>Automatically run a CHECKPOINT when the log is above 64MB. http://hsqldb.org/doc/guide/management-chapt.html#N150AB</comment>
</sql>
<sql>
SET CHECKPOINT DEFRAG 32;
<comment>Automatically defragment on CHECKPOINT when the wasted space is above 32MB.</comment>
SET FILES DEFRAG 50;
<comment>Sets the threshold in percentage for performing a DEFRAG during a checkpoint. http://hsqldb.org/doc/guide/management-chapt.html#N1506D</comment>
</sql>
<rollback></rollback>

Loading…
Cancel
Save