mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #31630 -- Removed DatabaseFeatures.can_introspect_autofield.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e198beadad
commit
e24b63fe85
@@ -125,12 +125,10 @@ class BaseDatabaseFeatures:
|
||||
# which can't do it for MyISAM tables
|
||||
can_introspect_foreign_keys = True
|
||||
|
||||
# Can the backend introspect an AutoField, instead of an IntegerField?
|
||||
can_introspect_autofield = False
|
||||
|
||||
# Map fields which some backends may not be able to differentiate to the
|
||||
# field it's introspected as.
|
||||
introspected_field_types = {
|
||||
'AutoField': 'AutoField',
|
||||
'BigAutoField': 'BigAutoField',
|
||||
'BigIntegerField': 'BigIntegerField',
|
||||
'BinaryField': 'BinaryField',
|
||||
|
||||
@@ -14,7 +14,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||
supports_forward_references = False
|
||||
supports_regex_backreferencing = False
|
||||
supports_date_lookup_using_string = False
|
||||
can_introspect_autofield = True
|
||||
supports_index_column_ordering = False
|
||||
supports_timezones = False
|
||||
requires_explicit_null_ordering_when_grouping = True
|
||||
|
||||
@@ -11,7 +11,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||
has_select_for_update_of = True
|
||||
select_for_update_of_column = True
|
||||
can_return_columns_from_insert = True
|
||||
can_introspect_autofield = True
|
||||
supports_subqueries_in_group_by = False
|
||||
supports_transactions = True
|
||||
supports_timezones = False
|
||||
|
||||
@@ -18,7 +18,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
||||
supports_timezones = False
|
||||
max_query_params = 999
|
||||
supports_mixed_date_datetime_comparisons = False
|
||||
can_introspect_autofield = True
|
||||
supports_transactions = True
|
||||
atomic_transactions = False
|
||||
can_rollback_ddl = True
|
||||
|
||||
Reference in New Issue
Block a user