1
0
mirror of https://github.com/Qortal/qortal.git synced 2025-03-29 00:36:05 +00:00

Add HSQLDB CHECKPOINT statements between database reshaping statements to reduce failures

This commit is contained in:
catbref 2020-08-12 14:20:23 +01:00
parent 50e2bda020
commit 91e82d1e3c

@ -636,13 +636,18 @@ public class HSQLDBDatabaseUpdates {
case 22:
// LOB downsizing
stmt.execute("ALTER TABLE Blocks ALTER COLUMN online_accounts VARBINARY(1024)");
stmt.execute("CHECKPOINT");
stmt.execute("ALTER TABLE Blocks ALTER COLUMN online_accounts_signatures VARBINARY(1048576)");
stmt.execute("CHECKPOINT");
stmt.execute("ALTER TABLE DeployATTransactions ALTER COLUMN creation_bytes VARBINARY(4096)");
stmt.execute("CHECKPOINT");
stmt.execute("ALTER TABLE ATs ALTER COLUMN code_bytes VARBINARY(1024)");
stmt.execute("CHECKPOINT");
stmt.execute("ALTER TABLE ATStates ALTER COLUMN state_data VARBINARY(1024)");
stmt.execute("CHECKPOINT");
break;
default: