Renamed import in MySQL introspection backend for consistency.

This commit is contained in:
Nick Pope 2019-01-09 13:12:45 +00:00 committed by Tim Graham
parent 99b3ab2781
commit e7f0e9b704
1 changed files with 2 additions and 2 deletions

View File

@ -3,12 +3,12 @@ from collections import namedtuple
from MySQLdb.constants import FIELD_TYPE from MySQLdb.constants import FIELD_TYPE
from django.db.backends.base.introspection import ( from django.db.backends.base.introspection import (
BaseDatabaseIntrospection, FieldInfo, TableInfo, BaseDatabaseIntrospection, FieldInfo as BaseFieldInfo, TableInfo,
) )
from django.db.models.indexes import Index from django.db.models.indexes import Index
from django.utils.datastructures import OrderedSet from django.utils.datastructures import OrderedSet
FieldInfo = namedtuple('FieldInfo', FieldInfo._fields + ('extra', 'is_unsigned')) FieldInfo = namedtuple('FieldInfo', BaseFieldInfo._fields + ('extra', 'is_unsigned'))
InfoLine = namedtuple('InfoLine', 'col_name data_type max_len num_prec num_scale extra column_default is_unsigned') InfoLine = namedtuple('InfoLine', 'col_name data_type max_len num_prec num_scale extra column_default is_unsigned')