Skip to content
This repository was archived by the owner on Aug 7, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sql_server/pyodbc/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion sql_server/pyodbc/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down