Skip to content
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

Development + missing migrations #140

Open
hovi opened this issue May 22, 2024 · 0 comments
Open

Development + missing migrations #140

hovi opened this issue May 22, 2024 · 0 comments

Comments

@hovi
Copy link

hovi commented May 22, 2024

I have django project has quite sophisticated build pipeline with many checks in place (lints, code formatting, unit tests).
One of them is checking for any apps that are in a state with missing migrations, the actual management command is this:

python manage.py makemigrations --check --dry-run

My job fails, because there are apparently migrations to be added:

Migrations for 'hitcount':
  .virtualenvs/ve/lib/python3.10/site-packages/hitcount/migrations/0005_alter_blacklistip_id_alter_blacklistuseragent_id_and_more.py
    - Alter field id on blacklistip
    - Alter field id on blacklistuseragent
    - Alter field id on hit
    - Alter field content_type on hitcount
    - Alter field id on hitcount

Not sure if it's because someone forgot them or if it's related to newer version of django. Either way this should be explored and migrations added.

That leads me to another point and that is - I haven't found simple way, how to setup development for hitcount. I haven't found a way to run makemigrations for hitcount without some hacks to module search path.
Is there a document on how to actually develop things?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant