* [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

@@ -32,7 +32,7 @@ use SP\Storage\Database;
use SP\Storage\DbWrapper;
use SP\Storage\FileException;
use SP\Storage\FileHandler;
use SP\Storage\MysqlFileParser;
use SP\Storage\MySQLFileParser;
use SP\Storage\QueryData;
use SP\Util\Util;
@@ -202,7 +202,7 @@ class UpgradeDatabaseService extends Service implements UpgradeInterface
$file = SQL_PATH . DIRECTORY_SEPARATOR . str_replace('.', '', $filename) . '.sql';
try {
return (new MysqlFileParser())->parse(new FileHandler($file), '$$');
return (new MySQLFileParser())->parse(new FileHandler($file), '$$');
} catch (FileException $e) {
processException($e);