Question about Production Migrations #1482
Unanswered
MarkLee425
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
If there are no better solutions, I am thinking if we can do for converting |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all. I have been using this library for over a year and since I am using Docker Compose for Postgres, I have been making two separated migrations folders for development and production use: /migrations/dev, /migrations/prod.
For /migrations/dev, it is using this library for convenience.
For /migrations/prod, it is using raw sql so that I can directly exec it with pg_dump inside the docker container in GitHub Actions or other CICD scripts.
So I am wondering if there are any better solutions to do that in production mode? Maybe programmatic API? Please share me some insights on that. Thanks.
TLDR
Reasons of using raw sql for production:
If you are using direct npm install, build and start in vps without concern about infra cost, feel free to skip this discussion :)
Beta Was this translation helpful? Give feedback.
All reactions