Skip to content

Commit

Permalink
Removes the unsupported "ON CONFLICT DO NOTHING" clause
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Lima committed Jun 20, 2022
1 parent 57b3d4a commit b158c6b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions django_redshift_backend/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class DatabaseFeatures(BasePGDatabaseFeatures):
has_native_uuid_field = False
supports_aggregate_filter_clause = False
supports_combined_alters = False # since django-1.8
supports_ignore_conflicts = False

# If support atomic for ddl, we should implement non-atomic migration for on rename and change type(size)
# refs django-redshift-backend #96
Expand Down Expand Up @@ -113,6 +114,10 @@ def distinct_sql(self, fields, *args):
)
return super(DatabaseOperations, self).distinct_sql(fields, *args)

def ignore_conflicts_suffix_sql(self, ignore_conflicts=None):
return ''



def _get_type_default(field):
internal_type = field.get_internal_type()
Expand Down

0 comments on commit b158c6b

Please sign in to comment.