Closed kylie-sre closed 4 months ago
Thank you for your report. However, django-redshift-backend is not compatible with Django 4.1 or later. I'm currently working on making Django 4.2 compatible at https://github.com/jazzband/django-redshift-backend/pull/129. If you like, please check whether the problem you reported has been fixed using the code in PR #129.
In my opinion, this problem occurs when using django-redshift-backend with Django 4.1 or later. I plan to release django-redshift-backend version 4.0.0, which is compatible with Django-4.2, soon.
Now django-redshift-backend 4.0.0 has been released.
Subject: There is a KeyError occurring in
_alter_column_type_sql
Problem
max_length
of a char field from 32 to 36self.sql_alter_column_type
, for a query to alter a field:"ALTER COLUMN %(column)s TYPE %(type)s%(collation)s"
collation
key:Procedure to reproduce the problem
Error logs / results
n/a
Expected results
The migration should complete successfully
Environment info