Changes between Initial Version and Version 3 of Ticket #23966
- Timestamp:
- 12/06/14 09:41:57 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23966
- Property Cc keniallee@… added
-
Property
Summary
changed from
Pre-migrate database requirements enhancement
toDoing 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