Opened 6 years ago
Last modified 6 years ago
#31402 closed New feature
Add --check flag to migrate. — at Version 3
| Reported by: | nickname123 | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Management commands) | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
It would be helpful if there was a flag for migrate that acted similar to makemigrations --check that could be used to stop CI from deploying an application automatically when unapplied migrations exist.
This is different from makemigrations --check because the new command flag would tell us if we need to *run* any migrations where as makemigrations --check tells us if we need to *create* any migrations.
One currently needs to parse output. It seems like this would be universally useful.
Change History (3)
comment:1 by , 6 years ago
| Component: | Uncategorized → Core (Management commands) |
|---|---|
| Resolution: | → wontfix |
| Status: | new → closed |
| Summary: | Add --check flag to showmigrations → Add --check flag to showmigrations. |
| Type: | Uncategorized → New feature |
comment:2 by , 6 years ago
| Description: | modified (diff) |
|---|---|
| Summary: | Add --check flag to showmigrations. → Add --check flag to migrate. |
| Triage Stage: | Unreviewed → Accepted |
Based on short discussion https://groups.google.com/d/msg/django-developers/wr8MYU-d8pU/f86jYOZ6AQAJ.
comment:3 by , 6 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | wontfix |
| Status: | closed → new |
Thanks for this ticket, however I don't see why you cannot use
makemigrations --checkfor the same purpose. You can start a discussion on DevelopersMailingList if you don't agree.