angel-dart-archive / orm

moved to angel-dart/angel/packages/orm

Home Page:https://github.com/angel-dart/angel/tree/master/packages/orm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect cast of ColumnType.float to DECIMAL in SQL

kevinelliott opened this issue · comments

*This issue was automatically moved to: angel-dart/angel#213.

Question - does the generated migration file also have decimal? Or float? IIRC I specifically added the DECIMAL casts because the postgres library returned doubles as strings (not sure if it still does this, but didn't want to fix what wasn't broken).

I don't use the migrations (database is defined elsewhere), so I can't say there. Postgres returns the FLOAT as a number not a string.

@thosakwe Any further update here?

OK understandable, I will fork and make some kind of correction for myself in the meantime. Thanks.

Feel free to send in a PR if you get it fixed on your end.