1
0
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:
Mariusz Felisiak
2020-09-04 20:27:23 +02:00
committed by GitHub
parent 17407eca59
commit e6b5108acc
2 changed files with 23 additions and 1 deletions

View File

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