Re: IntegerField - SQL type changed?

2008-05-15 Thread Amit Ramon
* Marty Alchin <[EMAIL PROTECTED]> [2008-05-15 10:45 -0400]: > > On Thu, May 15, 2008 at 10:25 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: > > Now, if I subclass an existing field and I want to define the database type > > myself, how do I do that? Is there a place to add mapping between a name

Re: IntegerField - SQL type changed?

2008-05-15 Thread Marty Alchin
On Thu, May 15, 2008 at 10:25 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: > Now, if I subclass an existing field and I want to define the database type > myself, how do I do that? Is there a place to add mapping between a name > returned by get_internal_type and a database type, like in

Re: IntegerField - SQL type changed?

2008-05-15 Thread Amit Ramon
* Marty Alchin <[EMAIL PROTECTED]> [2008-05-15 07:15 -0400]: > > On Thu, May 15, 2008 at 6:45 AM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Thu, May 15, 2008 at 5:34 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: > >> Was there any change in django in the recent months that could explain > >>

Re: IntegerField - SQL type changed?

2008-05-15 Thread Marty Alchin
On Thu, May 15, 2008 at 6:45 AM, James Bennett <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 5:34 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: >> Was there any change in django in the recent months that could explain this? >> Namely, could it be that a couple of months ago django would

Re: IntegerField - SQL type changed?

2008-05-15 Thread James Bennett
On Thu, May 15, 2008 at 5:34 AM, Amit Ramon <[EMAIL PROTECTED]> wrote: > Was there any change in django in the recent months that could explain this? > Namely, could it be that a couple of months ago django would indeed generate > a varchar(20) for this field, and now it generates int(11)?

IntegerField - SQL type changed?

2008-05-15 Thread Amit Ramon
Hello, A couple of months ago I created a custom field class which inherited models.IntegerField: class PhoneNumberField(models.IntegerField) What this class does is simply verifying a correct format for its data. Today I tried to use it in a new model, and I noticed that the database column