mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-09 18:06:54 +01:00
* [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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user