Skip to content

Commit

Permalink
Removed unused _alter_column_collation_sql() in PostgreSQL DatabaseSc…
Browse files Browse the repository at this point in the history
…hemaEditor.

Unused since ae0899b.
  • Loading branch information
felixxm committed Mar 25, 2024
1 parent a2dcc4e commit ae10146
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions django/db/backends/postgresql/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,25 +255,6 @@ def _alter_column_type_sql(
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,
Expand Down

0 comments on commit ae10146

Please sign in to comment.