fix: add missing drop column to migration
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0107e30c0e
commit
91fa9c6207
|
@ -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
|
||||
})
|
||||
})
|
||||
|
|
Reference in New Issue
Block a user