Fix update executing wrong sql files

This commit is contained in:
Jay Trees 2022-04-14 11:07:47 +02:00
parent 418feaaa32
commit 6815767e94

View file

@ -31,7 +31,7 @@ if ('POST' === $_SERVER['REQUEST_METHOD']) {
}
foreach ($versions as $version) {
if (-1 !== version_compare(VERSION, $version['version'])) {
if (-1 === version_compare($options->getOption('version'), $version['version'])) {
$sql = file_get_contents($version['filepath']);
if ($sql) {