You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foreach (\support\Db::select("select COLUMN_NAME,DATA_TYPE,COLUMN_KEY,COLUMN_COMMENT from INFORMATION_SCHEMA.COLUMNS where table_name = '$table' and table_schema = '$database'") as$item) {
113
118
if ($item->COLUMN_KEY === 'PRI') {
114
119
$pk = $item->COLUMN_NAME;
@@ -186,6 +191,11 @@ protected function createTpModel($class, $namespace, $file)
186
191
$table = "{$prefix}{$table}s";
187
192
$table_val = "'$table'";
188
193
}
194
+
$tableComment = \support\Db::select('SELECT table_comment FROM information_schema.`TABLES` WHERE table_schema = ? AND table_name = ?', [$database, $table]);
foreach (\think\facade\Db::query("select COLUMN_NAME,DATA_TYPE,COLUMN_KEY,COLUMN_COMMENT from INFORMATION_SCHEMA.COLUMNS where table_name = '$table' and table_schema = '$database'") as$item) {
0 commit comments