Explorar el Código

调整模型注解生成器:优化警告信息;恢复CREATE TABLE生成

Your Name hace 8 meses
padre
commit
3aad23b570
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      UCore/Commands/GenerateModelAnnotation.php

+ 2 - 2
UCore/Commands/GenerateModelAnnotation.php

@@ -532,11 +532,11 @@ class GenerateModelAnnotation extends Command
         if ($modelClass) {
             $sqlContent .= "-- 对应的Model: {$modelClass}\n";
         }
-        $sqlContent .= "-- 警告: 此文件由系统自动生成,禁止手动修改!\n";
+        $sqlContent .= "-- 警告: 此文件由系统自动生成,禁止修改!\n";
         $sqlContent .= "-- ******************************************************************\n\n";
 
 //        $sqlContent .= "DROP TABLE IF EXISTS `{$tableName}`;\n";
-//        $sqlContent .= "{$createSQL};\n";
+        $sqlContent .= "{$createSQL};\n";
 
         File::put($sqlFile, $sqlContent);
         $this->debug("已生成SQL: {$sqlFile} (无前缀表名: {$tableNameWithoutPrefix})");