#33379: Add minimum database version checks
-------------------------------------+-------------------------------------
               Reporter:  Tim        |          Owner:  nobody
  Graham                             |
                   Type:  New        |         Status:  new
  feature                            |
              Component:  Database   |        Version:  dev
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 7444f3252757ed4384623e5afd7dcfeef3e0c74e added a minimum version check for
 SQLite, but the other database backends don't have such a check. We
 sometimes get bug reports from people using an unsupported database
 version, so I think the checks would add value. Is a query to fetch the
 database version on startup an acceptable cost?

 Perhaps there's a better way to run a query just once, but here's what I
 did in django-cockroachdb:
 https://github.com/cockroachdb/django-
 cockroachdb/commit/27ebbefa515edf3ba68a5373dea48c4acdda60ab

 We could make the check generic by adding
 `DatabaseFeatures.minimum_database_version` as well as a standard method
 to get the database version as suggested in #18332.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33379>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.3042480a01b632f9ea27b368ea9427f0%40djangoproject.com.

Reply via email to