From a35d2a4510d5beec398b1007aaa26492d6aedf97 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Wed, 12 Sep 2018 23:45:17 +0100 Subject: Refs #23748 -- Added AutoField introspection for SQLite. --- django/db/backends/sqlite3/features.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'django/db/backends/sqlite3/features.py') diff --git a/django/db/backends/sqlite3/features.py b/django/db/backends/sqlite3/features.py index 69a42cdc02..19e949899f 100644 --- a/django/db/backends/sqlite3/features.py +++ b/django/db/backends/sqlite3/features.py @@ -16,10 +16,12 @@ class DatabaseFeatures(BaseDatabaseFeatures): max_query_params = 999 supports_mixed_date_datetime_comparisons = False autocommits_when_autocommit_is_off = sys.version_info < (3, 6) + can_introspect_autofield = True can_introspect_decimal_field = False can_introspect_duration_field = False can_introspect_positive_integer_field = True can_introspect_small_integer_field = True + introspected_big_auto_field_type = 'AutoField' supports_transactions = True atomic_transactions = False can_rollback_ddl = True -- cgit v1.3