Update TableController.php

This commit is contained in:
walkor 2023-01-05 14:40:22 +08:00 committed by GitHub
parent 8dc51585e8
commit a795555220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1454,7 +1454,7 @@ EOF;
$field = Util::filterAlphaNum($column['field']);
$old_field = Util::filterAlphaNum($column['old_field'] ?? null);
$nullable = $column['nullable'];
$default = Util::filterAlphaNum($column['default']);
$default = Util::pdoQuote($column['default']);
$comment = Util::pdoQuote($column['comment']);
$auto_increment = $column['auto_increment'];
$length = (int)$column['length'];