mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #145] Model changes missing corresponding migrations #99
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iphoting on GitHub (Dec 27, 2017).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/145
I think there might be missing a migration for this change-set
cb1eac50d9(PagerTree) and one other change-set touching accounts, which I couldn't locate?I'm getting the following notice when I do a pre-deploy executing
python manage.py migrate.Running
makemigrationsgot me the following new files:Hope this helps!
@cuu508 commented on GitHub (Dec 27, 2017):
You are right -- thanks!
I think neither of the migrations change anything in the database, but it is good to have them to avoid the above warning and for the completeness sake.
@cuu508 commented on GitHub (Dec 27, 2017):
PS the other changeset is this one:
github.com/healthchecks/healthchecks@f611a23f0bI had added a
related_nameparameter onMember.userfield but had not created a migration for it.@iphoting commented on GitHub (Dec 28, 2017):
Thanks for the quick response.
I was wondering, had the migrations not been created and applied to the database, and should a PagerTree integration be added, wouldn't it crash the app?
@cuu508 commented on GitHub (Dec 28, 2017):
The live site at https://healthchecks.io has the PagerTree integration, but doesn't have these two migrations applied yet. It seems to be working OK.
If I understand it correctly, neither migration makes any changes to the database (no altered columns, constraints, indexes or anything like that), they just bring the migration history in sync with the model classes defined in
models.py. And if the model classes and the database structure match up, it works.