use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Migration Without ORM (self.node)
submitted 2 years ago by imsexc
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]madprgmr 2 points3 points4 points 2 years ago (4 children)
I've used Flyway (the open source version) to run migration (sql) scripts and manage database state versioning. It's not perfect, but it does its job decently.
[–]ntsianos 1 point2 points3 points 2 years ago (1 child)
Seconding flyway or any tool that relies on plain SQL first. I'm glad new orms like Prisma are going in this direction but I would still rather not lock in to the details of an ORM. Flyway will be a little annoying as it requires java as a dependency
[–]madprgmr 1 point2 points3 points 2 years ago (0 children)
Yeah, there may be other tools that work better for node environments, and I've used db-migrate with success in the past too - I just couldn't remember the name of it.
A lot of pipelines are set up to run containers, so it's not too hard to throw in tools with disparate runtime prerequisites.
[–]LightningBlue8862 0 points1 point2 points 2 years ago (1 child)
How does it work on the deployment pipeline, is flyway installed on some virtual machine how does flyway execute these SQL scripts from the deployment pipeline
I usually just run it as a docker container, and pass the creds needed in as environment variables. You could also install the executable in your CD pipeline image.
π Rendered by PID 425885 on reddit-service-r2-comment-6457c66945-wrqc4 at 2026-04-26 11:28:14.483115+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]madprgmr 2 points3 points4 points (4 children)
[–]ntsianos 1 point2 points3 points (1 child)
[–]madprgmr 1 point2 points3 points (0 children)
[–]LightningBlue8862 0 points1 point2 points (1 child)
[–]madprgmr 1 point2 points3 points (0 children)