Skip to content

Commit

Permalink
Merge pull request #156 from jazzband/dj50-enabling-backward-migration
Browse files Browse the repository at this point in the history
fix for #143 enabling backward migrations on dj50
  • Loading branch information
shimizukawa authored Sep 16, 2024
2 parents e10cefe + 7975549 commit f5b8ac9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django_redshift_backend/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class DatabaseFeatures(BasePGDatabaseFeatures):
# refs https://github.com/django/django/blob/3702819/django/db/backends/sqlite3/schema.py#L131-L144
can_rollback_ddl = False

# since django-5.0
# https://github.com/django/django/pull/16809
delete_can_self_reference_subquery = True


class DatabaseOperations(BasePGDatabaseOperations):
def last_insert_id(self, cursor, table_name, pk_name):
Expand Down

0 comments on commit f5b8ac9

Please sign in to comment.