diff --git a/sql_server/pyodbc/creation.py b/sql_server/pyodbc/creation.py index 662c33e0..17449d15 100644 --- a/sql_server/pyodbc/creation.py +++ b/sql_server/pyodbc/creation.py @@ -36,6 +36,7 @@ class DatabaseCreation(BaseDatabaseCreation): 'FilePathField': 'nvarchar(%(max_length)s)', 'FloatField': 'double precision', 'IntegerField': 'int', + 'BigIntegerField': 'bigint', 'IPAddressField': 'nvarchar(15)', 'NullBooleanField': 'bit', 'OneToOneField': 'int', diff --git a/sql_server/pyodbc/introspection.py b/sql_server/pyodbc/introspection.py index 128a77cd..ed89c952 100644 --- a/sql_server/pyodbc/introspection.py +++ b/sql_server/pyodbc/introspection.py @@ -7,7 +7,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): # Map type codes to Django Field types. data_types_reverse = { SQL_AUTOFIELD: 'AutoField', - Database.SQL_BIGINT: 'IntegerField', + Database.SQL_BIGINT: 'BigIntegerField', #Database.SQL_BINARY: , Database.SQL_BIT: 'BooleanField', Database.SQL_CHAR: 'CharField',