Skip to content

Commit 620aca7

Browse files
committed
:octocat: mysql fieldspec default value fix fix
1 parent e0fd75d commit 620aca7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dialects/MySQL.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function fieldspec(string $name, string $type, $length = null, string $at
169169
$field[] = 'DEFAULT NULL';
170170
break;
171171
default:
172-
$field[] = 'DEFAULT '.(is_int($defaultValue) || is_float($defaultValue) ? $defaultValue : '\''.$defaultValue.'\'') ;
172+
$field[] = 'DEFAULT \''.$defaultValue.'\'';
173173
}
174174

175175
}

0 commit comments

Comments
 (0)