Fix reset only undoing one version

This commit is contained in:
Jan Bader 2021-12-14 14:11:11 +00:00
parent 8b6a8c3697
commit 84ddb36d62

View File

@ -21,7 +21,7 @@ func (h *Handler) admin(c *gin.Context) {
func (h *Handler) clearDatabase(c *gin.Context) {
d := AdminData{}
if err := goose.Down(h.Service.DB, "schema"); err != nil {
if err := goose.Reset(h.Service.DB, "schema"); err != nil {
c.AbortWithError(http.StatusInternalServerError, err)
}