Running "mikro-orm migration:check" without a database connection #5030
Answered
by
B4nan
ryanisaacg
asked this question in
Q&A
-
Hi, I'm trying to run a check in CI to see if there are any migrations that need to be generated before some code is merged. However, in my CI environment I don't have access to a postgres instance, and I get this issue when running
Is there any way to set up a config without a connection to a database, and check if migration files are up-to-date? |
Beta Was this translation helpful? Give feedback.
Answered by
B4nan
Dec 18, 2023
Replies: 1 comment 6 replies
-
Do you have a snapshot file generated (and committed)? It should be preferred over the actual schema inference. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
ryanisaacg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you have a snapshot file generated (and committed)? It should be preferred over the actual schema inference.