mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed problem introduced with #refs 13711.
This commit is contained in:
parent
908160f692
commit
1c50d6ae2b
4 changed files with 7 additions and 2 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:
|
||||
if max_name_length is None or connection.features.truncates_name:
|
||||
continue
|
||||
else:
|
||||
if allowed_len is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue