diff --git a/src/Starward/Services/DatabaseService.cs b/src/Starward/Services/DatabaseService.cs index 49b7db41c..5aab15093 100644 --- a/src/Starward/Services/DatabaseService.cs +++ b/src/Starward/Services/DatabaseService.cs @@ -98,7 +98,7 @@ public DateTime BackupDatabase(string file) using var backupCon = new SqliteConnection($"DataSource={file};Pooling=False;"); backupCon.Open(); using var con = CreateConnection(); - con.Execute("VACUUM;"); + con.Execute("VACUUM;", commandType: CommandType.Text); con.BackupDatabase(backupCon); var time = DateTime.Now; SetValue("LastBackupDatabase", Path.GetFileName(file), time);