Closed notnooblord closed 2 years ago
Seems like any unsigned is not supported in postgres derive macro. https://www.sea-ql.org/SeaORM/docs/generate-entity/entity-structure/#column-type Maybe we can just use i32 and i16 types.
@Eugeny There is also u16 in known host port, that also panics 😅 https://github.com/notnooblord/warpgate/blob/488bd7f62b8d4b068dc73b10650da66ad97363e8/warpgate-db-migrations/src/m00004_create_known_host.rs#L14
Sorry - fixed now! (you'll need to drop and recreate the database)
Tried to deploy with postgres today, most of the tables created fine, but right in the end of "unattended setup" command got into panic.
Probably we can't just slap
auto_increment = true
on u32 type using postgres. https://github.com/SeaQL/sea-query/blob/0.26.3/src/backend/postgres/table.rs#L239I'm not yet really familiar with sea-query, probably can be instrumented to work.
Here's panic unwind: