﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23966	Doing pre-migrate database requirements	Kenial Sookyum Lee	nobody	"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.~~

New workaround codes are added to django/contrib/gis/apps.py. (Thanks @aaugustin!)

Pull request link: https://github.com/django/django/pull/3695"	Cleanup/optimization	new	Database layer (models, ORM)	1.7	Normal		migrate BaseDatabaseWrapper spatialite	keniallee@…	Unreviewed	0	0	0	0	0	0
