chore: update VACUUM

This commit is contained in:
steven 2022-10-04 10:48:45 +08:00
parent eaf89aa2f2
commit 0b9b89db81
2 changed files with 3 additions and 1 deletions

View File

@ -199,3 +199,5 @@ FROM
_user_setting_old;
DROP TABLE IF EXISTS _user_setting_old;
VACUUM;

View File

@ -157,7 +157,7 @@ func (s *Store) DeleteResource(ctx context.Context, delete *api.ResourceDelete)
}
// Vacuum sqlite database file size after deleting resource.
if _, err := s.db.Exec("VACUUM;"); err != nil {
if _, err := s.db.Exec("VACUUM"); err != nil {
return err
}