#23966: Pre-migrate database requirements enhancement
-------------------------------------+-------------------------------------
Reporter: kenial | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version: 1.7
Component: Database layer | Keywords: migrate
(models, ORM) | BaseDatabaseWrapper spatialite
Severity: Normal | Has patch: 0
Triage Stage: Unreviewed | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Some database backends has special requirements when the database gets
migrated.
For example, when using django.contrib.gis.db.backends.spatialite as a
backend, the database file should be initialized at first time with this
command: `"SELECT InitSpatialMetaData();"` Unless, it causes some error
like https://code.djangoproject.com/ticket/20968.
I guess this would be appropriate: adding a before_migration() method to
DatabaseWrapper, and letting database backends inherit it to do some jobs.
--
Ticket URL: <https://code.djangoproject.com/ticket/23966>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.3e98622a2a13a51ef8509a37e6744909%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.