mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Removed unused _alter_column_collation_sql() in PostgreSQL DatabaseSchemaEditor.
Unused since ae0899be0d
.
This commit is contained in:
parent
a2dcc4ecbb
commit
ae10146793
@ -255,25 +255,6 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
||||
model, old_field, new_field, new_type, old_collation, new_collation
|
||||
)
|
||||
|
||||
def _alter_column_collation_sql(
|
||||
self, model, new_field, new_type, new_collation, old_field
|
||||
):
|
||||
sql = self.sql_alter_column_collate
|
||||
# Cast when data type changed.
|
||||
if using_sql := self._using_sql(new_field, old_field):
|
||||
sql += using_sql
|
||||
return (
|
||||
sql
|
||||
% {
|
||||
"column": self.quote_name(new_field.column),
|
||||
"type": new_type,
|
||||
"collation": (
|
||||
" " + self._collate_sql(new_collation) if new_collation else ""
|
||||
),
|
||||
},
|
||||
[],
|
||||
)
|
||||
|
||||
def _alter_field(
|
||||
self,
|
||||
model,
|
||||
|
Loading…
Reference in New Issue
Block a user