On Sun, 2006-10-15 at 12:45 -0700, MindsX wrote: > Hi all, > > Anyone got a quick hack to turn _all_ INTs in SQL generated code to > BIGINT? > > either in the models or running code accross the source.... > > I grep'd the db directory - > > backends/ado_mssql/creation.py: 'PositiveIntegerField': 'int > CONSTRAINT [CK_int_pos_%(column)s] CHECK ([%(column)s] > 0)', > > backends/ado_mssql/creation.py: 'PositiveSmallIntegerField': > 'smallint CONSTRAINT [CK_smallint_pos_%(column)s] CHECK ([%(column)s] > > 0)', > > > backends/mysql/introspection.py: FIELD_TYPE.INT24: 'IntegerField', > > I don't want to run a global replace on the code if someone has a > better idea - as I fear it may break stuff!
If you want to replace the types Django is using, you are going to have to edit the source code like this. We don't support arbitrary type replacement. Fortunately, presumably everything you can do with an int you can also do with a bigint in ado_mssql, you should be fairly safe. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---