Re: [racket-users] Note: DB layer does not handle Pg enums

2017-10-16 Thread David Storrs
Oh, cool. I didn't know that. Thanks, Jay. On Mon, Oct 16, 2017 at 6:09 PM, Jay Kominek wrote: > On Mon, Oct 16, 2017 at 12:04 PM, David Storrs > wrote: >> >> Not a critical issue, but the db package will not handle enums in >> Postgres. This is

Re: [racket-users] Note: DB layer does not handle Pg enums

2017-10-16 Thread Jay Kominek
On Mon, Oct 16, 2017 at 12:04 PM, David Storrs wrote: > Not a critical issue, but the db package will not handle enums in > Postgres. This is clear from the docs but I just now tripped over it > and thought I'd raise awareness. > > Workaround: make the field of type

[racket-users] Note: DB layer does not handle Pg enums

2017-10-16 Thread David Storrs
Not a critical issue, but the db package will not handle enums in Postgres. This is clear from the docs but I just now tripped over it and thought I'd raise awareness. Workaround: make the field of type TEXT and then add a table constraint: CONSTRAINT "files_current_state_cns" CHECK