django-pyodbc icon indicating copy to clipboard operation
django-pyodbc copied to clipboard

Support for BigIntegerField / bigint.

Open elver opened this issue 13 years ago • 0 comments

I had a problem where I was using a BigIntegerField as the 'id' field for certain tables and that column was not being created when doing a syncdb. So I did a tiny patch to fix that. Works now.

Here's a minimal example of how it can break without the patch:

class ObfuscatedPKModel(models.Model):
    class Meta:
        abstract = True
    id = models.BigIntegerField(primary_key = True, db_index = True)

elver avatar Sep 06 '12 12:09 elver