* adjust for install.

This commit is contained in:
z
2020-11-01 09:03:45 +08:00
parent c29fefc36f
commit 2c36700bc1
+2
View File
@@ -445,6 +445,8 @@ class installModel extends model
*/
public function createTable($version)
{
$this->dbh->exec("USE {$this->config->db->name}");
$dbFile = $this->app->getAppRoot() . 'db' . DS . 'zentao.sql';
$tables = explode(';', file_get_contents($dbFile));
foreach($tables as $table)