* Copy common folder to tmp.

This commit is contained in:
zhujinyong
2021-09-27 15:27:29 +08:00
parent f1151c37c7
commit 1cf925a37c
3 changed files with 7 additions and 2 deletions
+6
View File
@@ -100,6 +100,12 @@ function zdRun()
$dbh->exec("set names 'utf8'");
$dbh->beginTransaction();
/* Copy common to tmp. */
$tmpCommonPath = RUNTIME_ROOT . 'tmp/common';
if(file_exists($tmpCommonPath)) system("rm -rf $tmpCommonPath");
system("cp -r {$zdRoot}common $tmpCommonPath");
/* Generate SQL files. */
$command = "$zdPath -c %s -d $zdRoot%s -n %s -o {$zdRoot}sql/%s.sql -table %s";
$tables = array();
foreach($builder as $key => $info)