This commit is contained in:
2023-12-13 15:36:52 +08:00
parent f4ac618a1d
commit a9d315a6c0
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -391,7 +391,7 @@ class ' . $managerName . ' extends Model
return Gii::$createSqls[$table];
}
$text = Db::connect($this->db)->one('SHOW CREATE TABLE `'.$this->db->database. '`.`' . $table.'`')['Create Table'] ?? '';
$text = Db::connect($this->db)->fetch('SHOW CREATE TABLE `'.$this->db->database. '`.`' . $table.'`')['Create Table'] ?? '';
$_tmp = [];
foreach (explode(PHP_EOL, $text) as $val) {