bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.45k stars 425 forks source link

Issue in django squashed migration while migrating the app from django 1.11 to django 3.0 #663

Open vimal1083 opened 3 years ago

vimal1083 commented 3 years ago

The app was running on 1.11. we are migrating it to 3.0. As it is a multi-tenanted system we use django-tenant-schema.

Consider the app is running on django 1.11, I ran django migrate_schemas command, it ran all the migrations, Then I switch to different virtualenv where django 3.0 is installed but here the showmigrations command says below migration hasn't run 0023_auto_20180921_1708_squashed_0025_auto_20180921_1727

It should be same in both django versions, isn't it?

In screenshot, left side is django 3.0 and right side is django 1.11

Stackoverflow question: https://stackoverflow.com/questions/64229192/issue-in-django-squashed-migration-while-migrating-the-app-from-django-1-11-to-d