1
0
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:
Mariusz Felisiak 2024-03-25 08:50:26 +01:00 committed by GitHub
parent a2dcc4ecbb
commit ae10146793
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,