mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
[1.11.x] Pass type to sql_alter_column_* where it was missing.
This is a followup to2b3a941457Backport of837259a63ffrom master.
This commit is contained in:
@@ -434,6 +434,7 @@ class BaseDatabaseSchemaEditor(object):
|
|||||||
"table": self.quote_name(model._meta.db_table),
|
"table": self.quote_name(model._meta.db_table),
|
||||||
"changes": self.sql_alter_column_no_default % {
|
"changes": self.sql_alter_column_no_default % {
|
||||||
"column": self.quote_name(field.column),
|
"column": self.quote_name(field.column),
|
||||||
|
"type": db_params['type'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.execute(sql)
|
self.execute(sql)
|
||||||
|
|||||||
Reference in New Issue
Block a user