In #565, I discovered that my theoretically correct fix for en-/decoding enums for sqlx didn't work as intended. The fix simply added #[repr(i16)] to u8-repr'd enums when the sqlx feature was enabled. However, we store unsigned integers using the PgSQL NUMERIC type, which Pg (or sqlx) will not auto-convert from or to.
The improved fix is to provide a custom implementation of Type, Encode and Decode for the enums which are to be represented as unsigned integers. Perhaps this could be done via a macro derive.