Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #8347 -- Added a few missing field type conversion to SQLite's …


handling. Patch from trbs.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3111d7f commit 4f711eb5e3875a738262009a46f013c46b3dbc25 @malcolmt malcolmt committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 django/db/backends/sqlite3/
6 django/db/backends/sqlite3/
@@ -11,9 +11,13 @@ class FlexibleFieldLookupDict:
'bool': 'BooleanField',
'boolean': 'BooleanField',
'smallint': 'SmallIntegerField',
+ 'smallint unsigned': 'PositiveSmallIntegerField',
'smallinteger': 'SmallIntegerField',
'int': 'IntegerField',
'integer': 'IntegerField',
+ 'integer unsigned': 'PositiveIntegerField',
+ 'decimal': 'DecimalField',
+ 'real': 'FloatField',
'text': 'TextField',
'char': 'CharField',
'date': 'DateField',
@@ -34,7 +38,7 @@ def __getitem__(self, key):
class DatabaseIntrospection(BaseDatabaseIntrospection):
data_types_reverse = FlexibleFieldLookupDict()
def get_table_list(self, cursor):
"Returns a list of table names in the current database."
# Skip the sqlite_sequence system table used for autoincrement key

0 comments on commit 4f711eb

Please sign in to comment.
Something went wrong with that request. Please try again.