Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VNDLY-42402: Implement get_sequences in our fork #6

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

benstafford
Copy link

@benstafford benstafford commented Mar 20, 2024

This work pulls in some pieces of bernardopires#567

The migration file: vendor_entities.0034_alter_vendorentity_id does not run successfully without this after Django 4.2 upgrade. It fails with a stacktrace like:

File "/Users/ben.stafford/vndly/venv/lib/python3.9/site-packages/django/db/backends/postgresql/schema.py", line 217, in _alter_column_type_sql
if sequence_name := self._get_sequence_name(table, column):
File "/Users/ben.stafford/vndly/venv/lib/python3.9/site-packages/django/db/backends/postgresql/schema.py", line 138, in _get_sequence_name
for sequence in self.connection.introspection.get_sequences(cursor, table):
File "/Users/ben.stafford/vndly/venv/lib/python3.9/site-packages/django/db/backends/base/introspection.py", line 161, in get_sequences
raise NotImplementedError(
NotImplementedError: subclasses of BaseDatabaseIntrospection may require a get_sequences() method

@benstafford benstafford merged commit 442da23 into vndly Mar 20, 2024
@benstafford benstafford deleted the VNDLY-42402-implement-get-sequences branch March 20, 2024 19:23
@benstafford benstafford restored the VNDLY-42402-implement-get-sequences branch March 20, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants