#34924: Example for squashmigration not working properly
----------------------------------------------+------------------------
Reporter: Sebastian Jekutsch | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
----------------------------------------------+------------------------
Hi there,
sorry for the unspecific summary, but I expect to have a few issues here
without knowing how to tell on from the other.
I expect squashmigrations with optimization turned on (default) to result
in a squashed migration file so that running makemigration afterwards
doesn't detect any migration needs. In my case though, some single
migrations doesn't seem to to be in the squashed migration file.
Squashing is important to me, because for some time I temporarily
experimented with third-party libraries I don't want to include anymore.
But installing/migrating in a new database still require them to be in the
virtual environment, of cource, if not squashed mit optimization on.
See attachments:
* Zip of single migrations 0001 to 0116
* Resulting squashed migration file of "manage.py squashmigrations
knowledgebase 0116"
* Resulting migration file of "manage.py makemigrations"
Additionally, I found that two models seem to have disappeared completely
in the squashed migration file as well as it has not been recognized by
the makemigrations cross-check:
* AbstractEntity - this may be ok since it's an abstract super-class, but
note that AbtractCategory *is* included in the squashing
* Activity - this model vanished
See attachment models.py
--
Ticket URL: <https://code.djangoproject.com/ticket/34924>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018b5dff7019-f0ca1a18-4233-414b-8025-7f059b460747-000000%40eu-central-1.amazonses.com.