Skip to content
Snippets Groups Projects
Verified Commit faa9ebc0 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: do not check comparison result strictly


Signed-off-by: default avatarBart Jaskulski <bartek.jaskulski@wpdesk.net>
parent 2aa2be55
No related branches found
No related tags found
No related merge requests found
Pipeline #139969 passed with stages
in 21 seconds
# WP Migrations Changelog
## [1.0.3] - 19-12-2022
### Fixed
- Comparing migrations correctly installs newer version on fresh instance.
## [1.0.2] - 12-12-2022
### Fixed
- Migration no longer iterates over all registered entries. Install only newest versions.
......
......@@ -115,7 +115,7 @@ class WpdbMigrator implements Migrator {
$this->comparator->compare(
$migration->get_version(),
$this->get_current_version()
) === 1
) > 0
) {
$this->logger->info( sprintf( 'DB update %s:%s', $current_version, $migration->get_version() ) );
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment