mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Removed unused _alter_column_collation_sql() in PostgreSQL DatabaseSchemaEditor.
Unused since ae0899be0d.
This commit is contained in:
@@ -255,25 +255,6 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
|||||||
model, old_field, new_field, new_type, old_collation, new_collation
|
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(
|
def _alter_field(
|
||||||
self,
|
self,
|
||||||
model,
|
model,
|
||||||
|
|||||||
Reference in New Issue
Block a user