diff --git a/django/db/backends/oracle/introspection.py b/django/db/backends/oracle/introspection.py index 361308a62c..476e2f460b 100644 --- a/django/db/backends/oracle/introspection.py +++ b/django/db/backends/oracle/introspection.py @@ -33,6 +33,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): if data_type == cx_Oracle.NUMBER and description[5] == 0: if description[4] > 11: return 'BigIntegerField' + elif description[4]==1: + return 'BooleanField' else: return 'IntegerField' else: