case $field instanceof PasswordField:
$type = 'VARCHAR(1024)';
break;
case $field instanceof FloatField:
$type = 'DOUBLE';
break;
case $field instanceof StringField:
$type = 'VARCHAR(' . $field->getMaxLength() . ')';
break;
case $field instanceof BoolField:
$type = 'TINYINT(1)';
$default = 'DEFAULT \'0\'';
break;
case $field instanceof BlobField:
$type = 'LONGBLOB';