You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 to payload 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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