diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-26 08:58:07 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-26 08:58:07 +0000 |
| commit | 4f711eb5e3875a738262009a46f013c46b3dbc25 (patch) | |
| tree | 746120075f4f53d6704512404dc7b9988eb34c33 /django/db/backends/sqlite3 | |
| parent | 3111d7f60b67d5aefa4d891d1d9a86ba56d7607c (diff) | |
Fixed #8347 -- Added a few missing field type conversion to SQLite's inspectdb
handling. Patch from trbs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/sqlite3')
| -rw-r--r-- | django/db/backends/sqlite3/introspection.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/django/db/backends/sqlite3/introspection.py b/django/db/backends/sqlite3/introspection.py index 5e26f33ea6..64475d5d95 100644 --- a/django/db/backends/sqlite3/introspection.py +++ b/django/db/backends/sqlite3/introspection.py @@ -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 @@ class FlexibleFieldLookupDict: 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 |
