From 414147177a8d7892725c1d1de42a5f0884190629 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Mon, 24 Nov 2025 13:30:25 +0100 Subject: [PATCH] Vacuum not allowed within a migration transaction --- internal/repository/migrations/sqlite3/09_add-job-cache.up.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql b/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql index 82e8d15..863b50e 100644 --- a/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql +++ b/internal/repository/migrations/sqlite3/09_add-job-cache.up.sql @@ -227,4 +227,5 @@ CREATE INDEX IF NOT EXISTS jobs_energy_starttime ON job (energy, start_time); PRAGMA optimize; -- Optimize DB size: https://sqlite.org/lang_vacuum.html -VACUUM; \ No newline at end of file +-- Not allowed within a migration transaction; Keep command here for documentation and recommendation +-- Command: 'VACUUM;' \ No newline at end of file