3 ms·
Ask HN: How can I get clean solution for migrations in Node.js?
I want simple schema editor, where I can add/change sql schema, preferably simple GUI that generates update/alter/etc commands and it'd generate up/down migrations which then can also be ran then on prod.
- manx 5y agoHave a look at https://prisma.io https://prisma.io or https://atlasgo.io https://atlasgo.io
- lifeplusplus 5y ago2nd link is very much what I was thinking, I didn't even know how to search for it
- 2color 5y agoCheck out Prisma Migrate. It's a schema migrations tool that allows you to declare your schema declaratively using the Prisma schema language and generate SQL migrations for that you can edit: https://www.prisma.io/migrate https://www.prisma.io/migrate
- lifeplusplus 5y agoit does what I wanted but hate that it's more than that, it's acting like ORM which is I'd like to avoid.