mirror of
https://github.com/django/django.git
synced 2025-03-13 02:40:47 +00:00
Removed unused _alter_column_collation_sql() in PostgreSQL DatabaseSchemaEditor.
Unused since ae0899be0d787fbfc5f5ab2b18c5a8219d822d2b.
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
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user