From ab0df82b408c8c92c694a1b0e1ec2eccc989f6dd Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Tue, 9 May 2017 12:47:35 +0200 Subject: [PATCH] [1.11.x] Pass type to sql_alter_column_* where it was missing. This is a followup to 2b3a9414570af623853ca0f819c7d77d0511f22c Backport of 837259a63ff03fbc0ca2bc2999a6fbc8c6c40bcc from master. --- django/db/backends/base/schema.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/db/backends/base/schema.py b/django/db/backends/base/schema.py index ecea348cbf..e36c46e593 100644 --- a/django/db/backends/base/schema.py +++ b/django/db/backends/base/schema.py @@ -434,6 +434,7 @@ class BaseDatabaseSchemaEditor(object): "table": self.quote_name(model._meta.db_table), "changes": self.sql_alter_column_no_default % { "column": self.quote_name(field.column), + "type": db_params['type'], } } self.execute(sql)