diff --git a/lib/WP_Auth0_DBManager.php b/lib/WP_Auth0_DBManager.php index 48382388..d31d2012 100644 --- a/lib/WP_Auth0_DBManager.php +++ b/lib/WP_Auth0_DBManager.php @@ -19,7 +19,11 @@ public function install_db($version_to_install = null) $current_ver = (int) get_site_option('auth0_db_version', 0); } - if (empty($current_ver) || $current_ver === AUTH0_DB_VERSION) { + if ($current_ver === AUTH0_DB_VERSION) { + return; + } + + if (empty($current_ver)) { update_option('auth0_db_version', AUTH0_DB_VERSION); return; }