Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #393 from getAlby/task-add-vaccuming
Browse files Browse the repository at this point in the history
chore: add vacuuming after migration
  • Loading branch information
bumi authored Jun 6, 2024
2 parents 8bc5539 + d3d814b commit 4806eab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions migrations/202406061259_delete_content.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ var _202406061259_delete_content = &gormigrate.Migration{
return err
}

if err := tx.Exec("VACUUM").Error; err != nil {
return err
}

return nil
},
Rollback: func(tx *gorm.DB) error {
Expand Down

0 comments on commit 4806eab

Please sign in to comment.