修改主键问题

This commit is contained in:
liaofei 2023-04-26 08:57:14 +08:00
parent 7376b477ae
commit 6c02390071

View File

@ -781,6 +781,9 @@ class SystemCrudServices extends BaseServices
$table = new Table($tableName, ['comment' => $tableComment], $this->getAdapter());
//创建字段
foreach ($tableField as $item) {
if (isset($item['primaryKey']) && $item['primaryKey']) {
continue;
}
$option = [];
if (isset($item['limit'])) {
$option['limit'] = (int)$item['limit'];