fix: add missing drop column to migration
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Dawid Wysokiński 2022-11-13 14:03:23 +01:00
parent 0107e30c0e
commit 91fa9c6207
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892

View File

@ -146,12 +146,19 @@ func init() {
Model(m).
Column(col).
Exec(ctx); err != nil {
return fmt.Errorf("couldn't drop the %s column: %w", col, err)
return fmt.Errorf("%T - couldn't drop the %s column: %w", m, col, err)
}
}
}
}
if _, err := tx.NewDropColumn().
Model(&model.Player{}).
Column("last_activity_at").
Exec(ctx); err != nil {
return fmt.Errorf("player - couldn't add the last_activity_at column: %w", err)
}
return nil
})
})