Skip to content

Commit f931249

Browse files
elverdlo
authored andcommitted
add support for BigInteger / bigint
1 parent 2de55ce commit f931249

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

django_pyodbc/creation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class DatabaseCreation(BaseDatabaseCreation):
3636
'FilePathField': 'nvarchar(%(max_length)s)',
3737
'FloatField': 'double precision',
3838
'IntegerField': 'int',
39+
'BigIntegerField': 'bigint',
3940
'IPAddressField': 'nvarchar(15)',
4041
'NullBooleanField': 'bit',
4142
'OneToOneField': 'int',

django_pyodbc/introspection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
77
# Map type codes to Django Field types.
88
data_types_reverse = {
99
SQL_AUTOFIELD: 'AutoField',
10-
Database.SQL_BIGINT: 'IntegerField',
10+
Database.SQL_BIGINT: 'BigIntegerField',
1111
#Database.SQL_BINARY: ,
1212
Database.SQL_BIT: 'BooleanField',
1313
Database.SQL_CHAR: 'CharField',

0 commit comments

Comments
 (0)