title: How to solved error "Invalid default value for <field> " in django
body: <p>I using django framework to devlop my site. When i running on development server with sqlite database. database   migrate everything work well.</p>
  <p>but i got a problem when i running on production server with mysql database. in console is running OK in few line then display error &quot;Invalid default value for 'state'&quot;. what happend to got this error.</p>
  <p>this is my model in models.py</p>
  <pre><code>class Order(models.Model):
      ref_order = models.CharField(max_length=25,verbose_name=&quot;ref_code&quot;)
      member = models.ForeignKey('Member',on_delete=models.CASCADE,verbose_name=&quot;member&quot;)
      order_product = models.ManyToManyField('OrderProduct',verbose_name=&quot;order_product&quot;)
      reciver_name = models.CharField(max_length=30,verbose_name=&quot;reciver&quot;)
      reciver_location = models.CharField(max_length=30,verbose_name=&quot;reciver location&quot;)
      submit_order = models.BooleanField(default=False,verbose_name=&quot;order submit&quot;)
      evidence = models.FileField(upload_to='slip',null=True,verbose_name=&quot;evidence transfer&quot;)
      money_transfer = models.FloatField(null=True,verbose_name=&quot;money&quot;)
      verified = models.BooleanField(default=False,verbose_name=&quot;verified transfer&quot;)
      state = models.CharField(max_length=100,verbose_name=&quot;state&quot;)
      create_at = models.DateTimeField(auto_now_add=True,verbose_name=&quot;create at&quot;)
      payment_at = models.DateTimeField(blank=True,null=True,verbose_name=&quot;transfer_data&quot;)
  </code></pre>