Create a gist now

Instantly share code, notes, and snippets.

if ($length != '' && ! preg_match($pattern, $type)) {
$lengthFix = str_replace(",", ".", $length);
if($lengthFix != $length){
$modified = true;
}
if(is_numeric($lengthFix)){
if($modified){
$length = str_replace(".", ",", $lengthFix);
}
$query .= '(' . intval($length) . ')';
} else {
$query .= '(' . $length . ')';
}
}
@bamz3r
Owner
bamz3r commented Oct 28, 2016

This fixed creation and edit of enum type in my case

@batthiqbal27

Thanks bamz3r..
I was facing this issue from last one month but this works for me. Thank you very much!!

@mooyiwa
mooyiwa commented Feb 7, 2017

No notes sir! When do you run this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment