Hacker News new | past | comments | ask | show | jobs | submit login

I was using enums, but then I found out that you can't alter an enum inside a transaction.. very painful in a knex environment where up/down all occurs within a transaction



If knex doesn't provide facilities for running migrations outside of a transaction, you're going to have an awful time.

Useful operations like CREATE INDEX CONCURRENTLY can't be run in transactions.


This is exactly the problem I found when wanting to use enums. They do not play nicely with transactional DDL.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: