fixed migration issues on mysql.

* default=0 does not work,
* even creating a key longer than 1000 chars does not work with mysql,
  so migration 4 needs to be changed already, discarding 5, which was
  the same as the change in 4 now.