django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

fix: Introspection get_sequences() NotImplementedError

Open shantanutomarr opened this issue 8 months ago • 0 comments

  • When running migrate_schemas command that applies a migration to change the primary key field of a model from AutoField to BigAutoField, 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

shantanutomarr avatar Mar 24 '25 07:03 shantanutomarr