Changes between Initial Version and Version 1 of Ticket #36643, comment 2
- Timestamp:
- Oct 8, 2025, 8:32:05 AM (5 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36643, comment 2
initial v1 9 9 - When I updated the one instance that did NOT received the squashed migrations before, the `manage.py migrate` command was run automatically 10 10 - One of the apps did not have any squashed migrations, so it remained marked as applied and appeared updated (i.e. `shortner` in this case) 11 - The same app `shortner` also was depending on a another app `charts` that has had squashed migration, and as far as Django is concerned it looked like none of the migrations of applied for `charts` but all migrations were applied to `shortner`. Because thewhen the migrate script ran it marked all migrations as being unapplied for `charts`.11 - The same app `shortner` also was depending on a another app `charts` that has had squashed migration, and as far as Django is concerned it looked like none of the migrations were applied for `charts` but all migrations were applied to `shortner`. That's because, when the migrate script ran it marked all migrations as being unapplied for `charts`. 12 12 - The consistency check was seeing that migrations for `shortner` were applied before `charts`. Even though both apps were up to date will all the schema changes. 13 13 14 14 ---- 15 15 16 Beeing in this scenario, I thought that: "Hey no problem, the DB itself is up to date. Django has this 'fake' apply migration utility just to bail you out when you mess up massively as I did."16 Beeing in this scenario, I thought that: "Hey, no problem, the DB itself is up to date. Django has this 'fake' apply migration utility just to bail you out when you mess up massively as I did." 17 17 18 18 Well, apparently I could not be bailed out from this scenario by the "fake apply" migration because of this "consistency check". So I ended up messing around directly into django internal tables (which I would rather always avoid) to fix my issue because the "migrate" command refused to do anything at all.