mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed name of database connection feature
This commit is contained in:
parent
f7a78f9bba
commit
dd9b3312d0
4 changed files with 5 additions and 6 deletions
|
@ -18,7 +18,7 @@ def get_max_column_name_length():
|
|||
for db in settings.DATABASES.keys():
|
||||
connection = connections[db]
|
||||
max_name_length = connection.ops.max_name_length()
|
||||
if max_name_length is None or connection.features.truncates_name:
|
||||
if max_name_length is None or connection.features.truncates_names:
|
||||
continue
|
||||
else:
|
||||
if allowed_len is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue