#16104: inspectdb of a Mysql table fails to add null=True for Varchars
----------------------+--------------------------------------------
 Reporter:  barracel  |          Owner:  nobody
     Type:  Bug       |         Status:  new
Milestone:            |      Component:  Core (Management commands)
  Version:  1.3       |       Severity:  Normal
 Keywords:            |   Triage Stage:  Unreviewed
Has patch:  0         |  Easy pickings:  0
----------------------+--------------------------------------------
 Using inspectdb for the following table:
 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!sql
      CREATE TABLE `test` (
         `test_int` bigint DEFAULT NULL,
         `test_varchar` varchar(100) DEFAULT NULL);
   }}}
 }}}

 I get the model:
 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!python
     class Test(models.Model):
         test_int = models.BigIntegerField(null=True, blank=True)
         test_varchar = models.CharField(max_length=300, blank=True)
         class Meta:
             db_table = u'test'
   }}}
 }}}

 test_varchar definition contains '''null=True''' but test_int does not

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16104>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to