Changes between Initial Version and Version 3 of Ticket #23966
- Timestamp:
- Dec 6, 2014, 3:41:57 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23966
- Property Cc added
- Property Summary Pre-migrate database requirements enhancement → Doing pre-migrate database requirements
-
Ticket #23966 – Description
initial v3 3 3 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. 4 4 5 I guess this would be appropriate: adding a before_migration() method to DatabaseWrapper, and letting database backends inherit it to do some jobs. 5 ~~I guess this would be appropriate: adding a before_migration() method to DatabaseWrapper, and letting database backends inherit it to do some jobs.~~ 6 7 New workaround codes are added to django/contrib/gis/apps.py. (Thanks @aaugustin!) 8 9 Pull request link: https://github.com/django/django/pull/3695