* [FIX] Fixed upgrade process. Thanks to @josedo_3010 for the feedback and testing!

* [ADD] Improved SQL file parsing for better install/upgrade handling.
This commit is contained in:
nuxsmin
2018-03-24 12:09:23 +01:00
parent c01ca9d3d5
commit 38630dc3bc
22 changed files with 55 additions and 786 deletions

View File

@@ -30,7 +30,7 @@ use SP\Core\Exceptions\SPException;
use SP\Storage\DatabaseConnectionData;
use SP\Storage\DBUtil;
use SP\Storage\FileHandler;
use SP\Storage\MysqlFileParser;
use SP\Storage\MySQLFileParser;
use SP\Storage\MySQLHandler;
use SP\Util\Util;
@@ -296,7 +296,7 @@ class MySQL implements DatabaseSetupInterface
}
foreach ((new MysqlFileParser())
foreach ((new MySQLFileParser())
->parse(new FileHandler($fileName)) as $query) {
try {
$dbc->exec($query);