Skip to content

Commit

Permalink
fix the issue when excute vacuum in database #468
Browse files Browse the repository at this point in the history
  • Loading branch information
Scighost committed Oct 28, 2023
1 parent 2adb21e commit 476993d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Starward/Services/DatabaseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 476993d

Please sign in to comment.