Open baterson opened 7 years ago
I just had the exact same situation. In the SHARED_APPS I forgot to add 'django.contrib.sessions' and once it has been added, python manage.py migrate_schemas
kept saying that there are no changes to be applied, however django_session table was not in the schema
When I've inspected migrate_schemas
somehow 'fake' applied the migration?
Running DELETE FROM <schema>.django_migrations WHERE app='sessions';
and then python manage.py migrate_schemas
resulted with
Applying sessions.0001_initial...
which ultimately solved the problem
the solution by @noirifrop ultimately solved this issue
Hi I have setup like this:
After running
makemigrations
andmigrate_schemas
,apps.users
is accessible only in my public schema like I expect. But then I realize that I need appusers
in my tenants schemas too. I put it toTENANT_APPS
and runmakemigrations
again. But django did not find any change in my apps.Is there any way to move app from shared to tenants? Or my only choice is to delete tenant schema and make migrations again?