The transfer 'step' column is incorrectly typed
The step
column in the transfers
& transfer_history
tables has the wrong type. It should be of type VARCHAR, but instead it has the INT type (like in the code). The column should be explicitly declared with type VARCHAR in the model so that XORM gives it the correct type.