New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prevent django from generating unnecessary migrations #475
Conversation
KERROKANTASI-API branch is deployed to platta: https://kerrokantasi-pr475.api.dev.hel.ninja 🚀🚀🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
270bfec
to
8d1383d
Compare
KERROKANTASI-API branch is deployed to platta: https://kerrokantasi-pr475.api.dev.hel.ninja 🚀🚀🚀 |
If the value of PROTECTED_ROOT env variable changes, Django would generate a migration for this. However, local and production environments might have different values for that, which leads to warnings when checking for missing migrations. This commit adds a dummy storage subclass to prevent Django from creating these migrations.
8d1383d
to
8a2608c
Compare
The content of the PR changed a bit. Still adds a migration, but also adds a dummy FileSystemStorage subclass to prevent Django from making unnecessary migrations every time the value of |
KERROKANTASI-API branch is deployed to platta: https://kerrokantasi-pr475.api.dev.hel.ninja 🚀🚀🚀 |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Content of the PR has changed too much from the original
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 👍
No description provided.