﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30800	Altering field crashes for fields with custom db_type() on PostgreSQL.	Mariusz Felisiak	Mariusz Felisiak	"Altering field crashes for fields with a custom `db_type()` on PostgreSQL, e.g. `ArrayField`:
{{{
    def db_type(self, connection):
        size = self.size or ''
        return '%s[%s]' % (self.base_field.db_type(connection), size)
}}}

Regression in 1378d665a1c85897d951f2ca9618b848fdbba2e7.

{{{
  File ""django/django/db/backends/postgresql/schema.py"", line 72, in _alter_column_type_sql
    if self._field_data_type(old_field) != self._field_data_type(new_field):
  File ""django/django/db/backends/postgresql/schema.py"", line 45, in _field_data_type
    return self.connection.data_types[field.get_internal_type()]
KeyError: 'ArrayField'
}}}"	Bug	closed	Database layer (models, ORM)	3.0	Release blocker	fixed		Hasan Ramezani	Accepted	1	0	0	0	0	0
