django-tenant-schemas
django-tenant-schemas copied to clipboard
fix: Introspection get_sequences() NotImplementedError
-
When running migrate_schemas command that applies a migration to change the primary key field of a model from
AutoFieldtoBigAutoField, we get the following error:NotImplementedError: subclasses of BaseDatabaseIntrospection may require a get_sequences() method -
Apparently this method is not implemented in the tenant schemas backend yet, but is expected by Django 4.2.
-
This commit adds that method by referring to earlier pull requests on this issue:
- https://github.com/bernardopires/django-tenant-schemas/pull/567
- https://github.com/bernardopires/django-tenant-schemas/pull/704