Replies: 3 comments 3 replies
-
@CamiloDFM did you implement this? I would be interested in an example implementation. Also checking all the |
Beta Was this translation helpful? Give feedback.
1 reply
-
Just opened a PR #11592, you can use the |
Beta Was this translation helpful? Give feedback.
2 replies
-
In case it's helpful, this is what we're using in our CI to check if a migration should have been created for a PR or not:
|
Beta Was this translation helpful? Give feedback.
0 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 everyone! 👋
We're starting to use Payload at my org, and I'm currently setting up CI/CD for our first site. I was wondering if anyone has replicated Django's
makemigrations --check
to use in CI.For those unfamiliar with Django,
makemigrations
is Django's equivalent topayload migrate:create
. The--check
flag checks if there are any schema changes not reflected in the existing migration files, and if there are any, exits with an error code instead of creating the migration file.Doing this manually with
payload migrate:create
doesn't seem to be trivial, given that the command asks for user input if there are no schema changes, and a solution would need to capture and check the command's output. So I wanted to see if anyone has already solved this before reinventing the wheel.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions