fixed bug

This commit is contained in:
JaguarJack
2020-05-01 00:59:46 +08:00
parent 892f8f2aad
commit ae01ba64b2
2 changed files with 16 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ class SQL extends Factory
$sql['type'],
$sql['length'] ? sprintf('(%s)', $sql['length']) : '',
$sql['unsigned'] ? 'unsigned' : '',
$sql['default'] ?? '',
'default ' . $sql['default'],
$sql['nullable'] ? 'not null' : '',
$sql['comment'] ? sprintf('comment \'%s\'', $sql['comment']) : ''
]) . ','. PHP_EOL;