summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/schema.py
diff options
context:
space:
mode:
authorFlorian Apolloner <apollo13@users.noreply.github.com>2017-06-06 17:08:40 +0200
committerTim Graham <timograham@gmail.com>2017-06-06 11:08:40 -0400
commit823d73be3ee16b35d5e4a94ce7b907efc36dbd32 (patch)
tree11d30d63555155bfc799699a143bacfd6f6a6640 /django/db/backends/mysql/schema.py
parent5e9f7f1e1c15804b761a0adfa523d53531ef5635 (diff)
downloaddjango-823d73be3ee16b35d5e4a94ce7b907efc36dbd32.tar.gz
Fixed #28275 -- Added more hooks to SchemaEditor._alter_field().
Diffstat (limited to 'django/db/backends/mysql/schema.py')
-rw-r--r--django/db/backends/mysql/schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/mysql/schema.py b/django/db/backends/mysql/schema.py
index 9cae8b79b5..24abdaf611 100644
--- a/django/db/backends/mysql/schema.py
+++ b/django/db/backends/mysql/schema.py
@@ -92,9 +92,9 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
new_type += " NOT NULL"
return new_type
- def _alter_column_type_sql(self, table, old_field, new_field, new_type):
+ def _alter_column_type_sql(self, model, old_field, new_field, new_type):
new_type = self._set_field_new_type_null_status(old_field, new_type)
- return super()._alter_column_type_sql(table, old_field, new_field, new_type)
+ return super()._alter_column_type_sql(model, old_field, new_field, new_type)
def _rename_field_sql(self, table, old_field, new_field, new_type):
new_type = self._set_field_new_type_null_status(old_field, new_type)