Skip to content

Conversation

@jeroenbrouwer
Copy link

Added an additional function get_sequences() to introspection.py so that flush works. Fixes #538.

@jeroenbrouwer
Copy link
Author

@goodtune could you take a look at this? Thanks 👍

Copy link

@tobiasgoecke tobiasgoecke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jeroenbrouwer
Copy link
Author

The master branch of this repo has diverged a bit over the years, probably best to extract the useful bits into a separate branch and do a PR from there?

benstafford added a commit to vndly-oss/django-tenant-schemas that referenced this pull request Mar 20, 2024
shantanutomarr added a commit to testpress/django-tenant-schemas that referenced this pull request Mar 24, 2025
- 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 refering to a pull request on the
original project,
bernardopires#567.
@goodtune
Copy link
Collaborator

goodtune commented Sep 4, 2025

Fixed in #712.

@goodtune goodtune closed this Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Django db introspection get_sequences() NotImplementedError on flush

3 participants