Author: mtredinnick
Date: 2008-08-26 03:58:07 -0500 (Tue, 26 Aug 2008)
New Revision: 8580

Modified:
   django/trunk/django/db/backends/sqlite3/introspection.py
Log:
Fixed #8347 -- Added a few missing field type conversion to SQLite's inspectdb
handling. Patch from trbs.


Modified: django/trunk/django/db/backends/sqlite3/introspection.py
===================================================================
--- django/trunk/django/db/backends/sqlite3/introspection.py    2008-08-26 
08:08:55 UTC (rev 8579)
+++ django/trunk/django/db/backends/sqlite3/introspection.py    2008-08-26 
08:58:07 UTC (rev 8580)
@@ -11,9 +11,13 @@
         '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 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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to