Skip migration on empty db

This commit is contained in:
Pavel Dohnal
2017-08-17 11:55:51 +02:00
parent 36d4e3eb15
commit f035d12aaf

View File

@ -402,7 +402,7 @@ class Populator {
global $wpdb;
// perform once for versions below 3.0.0-beta.36.2.1
if(version_compare(get_option('mailpoet_db_version'), '3.0.0-beta.36.2.1', '>=')) {
if(version_compare(get_option('mailpoet_db_version', '3.0.0-beta.36.2.3'), '3.0.0-beta.36.2.1', '>=')) {
return false;
}