File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,10 @@ class DatabaseWrapper(BaseDatabaseWrapper):
174
174
# TODO: freetext, full-text contains...
175
175
}
176
176
177
+ # In Django 1.8 data_types was moved from DatabaseCreation to DatabaseWrapper.
178
+ # See https://docs.djangoproject.com/en/1.10/releases/1.8/#database-backend-api
179
+ data_types = DatabaseCreation .data_types
180
+
177
181
def __init__ (self , * args , ** kwargs ):
178
182
super (DatabaseWrapper , self ).__init__ (* args , ** kwargs )
179
183
@@ -357,6 +361,7 @@ def _cursor(self):
357
361
cursor .execute ("SET DATEFORMAT ymd; SET DATEFIRST %s" % self .datefirst )
358
362
if self .ops .sql_server_ver < 2005 :
359
363
self .creation .data_types ['TextField' ] = 'ntext'
364
+ self .data_types ['TextField' ] = 'ntext'
360
365
self .features .can_return_id_from_insert = False
361
366
362
367
ms_sqlncli = re .compile ('^((LIB)?SQLN?CLI|LIBMSODBCSQL)' )
You can’t perform that action at this time.
0 commit comments