Fix update executing wrong sql files
This commit is contained in:
parent
418feaaa32
commit
6815767e94
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue