Skip to content

Commit

Permalink
Fixed #35412 -- Dropped support for SQLite < 3.31.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixxm committed Apr 28, 2024
1 parent 8c257ce commit ed2ca35
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
15 changes: 6 additions & 9 deletions django/db/backends/sqlite3/features.py
Expand Up @@ -9,7 +9,7 @@


class DatabaseFeatures(BaseDatabaseFeatures):
minimum_database_version = (3, 27)
minimum_database_version = (3, 31)
test_db_allows_multiple_connections = False
supports_unspecified_pk = True
supports_timezones = False
Expand All @@ -31,18 +31,15 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_parentheses_in_compound = False
can_defer_constraint_checks = True
supports_over_clause = True
supports_frame_range_fixed_distance = Database.sqlite_version_info >= (3, 28, 0)
supports_frame_exclusion = Database.sqlite_version_info >= (3, 28, 0)
supports_aggregate_filter_clause = Database.sqlite_version_info >= (3, 30, 1)
supports_order_by_nulls_modifier = Database.sqlite_version_info >= (3, 30, 0)
# NULLS LAST/FIRST emulation on < 3.30 requires subquery wrapping.
requires_compound_order_by_subquery = Database.sqlite_version_info < (3, 30)
supports_frame_range_fixed_distance = True
supports_frame_exclusion = True
supports_aggregate_filter_clause = True
order_by_nulls_first = True
supports_json_field_contains = False
supports_update_conflicts = True
supports_update_conflicts_with_target = True
supports_stored_generated_columns = Database.sqlite_version_info >= (3, 31, 0)
supports_virtual_generated_columns = Database.sqlite_version_info >= (3, 31, 0)
supports_stored_generated_columns = True
supports_virtual_generated_columns = True
test_collations = {
"ci": "nocase",
"cs": "binary",
Expand Down
2 changes: 1 addition & 1 deletion docs/ref/contrib/gis/install/index.txt
Expand Up @@ -59,7 +59,7 @@ Database Library Requirements Supported Versions Notes
PostgreSQL GEOS, GDAL, PROJ, PostGIS 13+ Requires PostGIS.
MySQL GEOS, GDAL 8.0.11+ :ref:`Limited functionality <mysql-spatial-limitations>`.
Oracle GEOS, GDAL 19+ XE not supported.
SQLite GEOS, GDAL, PROJ, SpatiaLite 3.27.0+ Requires SpatiaLite 4.3+
SQLite GEOS, GDAL, PROJ, SpatiaLite 3.31.0+ Requires SpatiaLite 4.3+
================== ============================== ================== =========================================

See also `this comparison matrix`__ on the OSGeo Wiki for
Expand Down
2 changes: 1 addition & 1 deletion docs/ref/databases.txt
Expand Up @@ -812,7 +812,7 @@ appropriate typecasting.
SQLite notes
============

Django supports SQLite 3.27.0 and later.
Django supports SQLite 3.31.0 and later.

SQLite_ provides an excellent development alternative for applications that
are predominantly read-only or require a smaller installation footprint. As
Expand Down
2 changes: 2 additions & 0 deletions docs/releases/5.1.txt
Expand Up @@ -419,6 +419,8 @@ Miscellaneous
* The undocumented ``django.urls.converters.get_converter()`` function is
removed.

* The minimum supported version of SQLite is increased from 3.27.0 to 3.31.0.

.. _deprecated-features-5.1:

Features deprecated in 5.1
Expand Down

0 comments on commit ed2ca35

Please sign in to comment.