* Fix install error.

This commit is contained in:
Yagami
2020-11-06 16:53:42 +08:00
parent 827a884575
commit d5f2af0cfe
+3
View File
@@ -445,8 +445,11 @@ 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)
{
$table = trim($table);