MCPcopy
hub / github.com/django/django / _rename_field_sql

Method _rename_field_sql

django/db/backends/mysql/schema.py:224–226  ·  view source on GitHub ↗
(self, table, old_field, new_field, new_type)

Source from the content-addressed store, hash-verified

222 return field_db_params["check"]
223
224 def _rename_field_sql(self, table, old_field, new_field, new_type):
225 new_type = self._set_field_new_type(old_field, new_type)
226 return super()._rename_field_sql(table, old_field, new_field, new_type)
227
228 def _alter_column_comment_sql(self, model, new_field, new_type, new_db_comment):
229 # Comment is alter when altering the column type.

Callers 1

_alter_fieldMethod · 0.95

Calls 1

_set_field_new_typeMethod · 0.95

Tested by

no test coverage detected