From b158c6b151988656ae46b63d5de7886ba027f1d0 Mon Sep 17 00:00:00 2001 From: Arthur Lima Date: Mon, 20 Jun 2022 09:03:31 -0300 Subject: [PATCH] Removes the unsupported "ON CONFLICT DO NOTHING" clause --- django_redshift_backend/base.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/django_redshift_backend/base.py b/django_redshift_backend/base.py index a88c30e..12616f0 100644 --- a/django_redshift_backend/base.py +++ b/django_redshift_backend/base.py @@ -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 @@ -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()