mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 04:48:10 +08:00
fix: 更新数据表脚本生成样式
This commit is contained in:
parent
c51adc055a
commit
4d67e13f6f
@ -276,10 +276,12 @@ class PhinxExtend
|
|||||||
*/
|
*/
|
||||||
private function _create_{$table}()
|
private function _create_{$table}()
|
||||||
{
|
{
|
||||||
// 创建更新数据表
|
// 创建数据表对象
|
||||||
PhinxExtend::upgrade(\$this->table('{$table}', [
|
\$table = \$this->table('{$table}', [
|
||||||
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '{$comment}',
|
'engine' => 'InnoDB', 'collation' => 'utf8mb4_general_ci', 'comment' => '{$comment}',
|
||||||
]), _FIELDS_, _INDEXS_);
|
]);
|
||||||
|
// 创建或更新数据表
|
||||||
|
PhinxExtend::upgrade(\$table, _FIELDS_, _INDEXS_);
|
||||||
}
|
}
|
||||||
CODE;
|
CODE;
|
||||||
// 生成字段内容
|
// 生成字段内容
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user