mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #27417 -- Made RenameField operation a noop for field name case changes on Oracle.
Field names are always uppercased in the Oracle backend. Changing case should be a noop to avoid database errors: "ORA-00957: duplicate column name".
This commit is contained in:
@@ -1045,7 +1045,7 @@ class BaseDatabaseSchemaEditor:
|
||||
old_kwargs.pop('db_column', None)
|
||||
new_kwargs.pop('db_column', None)
|
||||
return (
|
||||
old_field.column != new_field.column or
|
||||
self.quote_name(old_field.column) != self.quote_name(new_field.column) or
|
||||
(old_path, old_args, old_kwargs) != (new_path, new_args, new_kwargs)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user