Closed shimizukawa closed 2 years ago
Since Django-2.0, django/db/backends/base/schema.py
has been accepted extra keyword arguments:
def _create_index_sql(self, model, fields, *, name=None, suffix='', using='',
db_tablespace=None, col_suffixes=(), sql=None):
And Django-3.2.12 also accepts too. https://github.com/django/django/blob/fdf209eab8949ddc345aa0212b349c79fc6fdebb/django/db/backends/postgresql/schema.py#L227-L231
def _create_index_sql(
self, model, *, fields=None, name=None, suffix='', using='',
db_tablespace=None, col_suffixes=(), sql=None, opclasses=(),
condition=None, concurrently=False, include=None, expressions=None,
):
It has been released https://pypi.org/project/django-redshift-backend/3.0.0/
Problem
_create_index_sql()
causeTypeError: _create_index_sql() got an unexpected keyword argument 'name'
Procedure to reproduce the problem
Error logs / results
Add a example project for testing and showcase · jazzband/django-redshift-backend@e81c87d
Expected results
No errors for
sqlmigrate
Environment info