diff --git a/app/Http/Middleware/StartupCheck.php b/app/Http/Middleware/StartupCheck.php index 1c014e8d1315..e3ad3a6ba5fa 100644 --- a/app/Http/Middleware/StartupCheck.php +++ b/app/Http/Middleware/StartupCheck.php @@ -10,6 +10,7 @@ use Redirect; use Cache; use Session; use Event; +use Schema; use App\Models\Language; use App\Models\InvoiceDesign; use App\Events\UserSettingsChanged; @@ -154,7 +155,8 @@ class StartupCheck } foreach ($cachedTables as $name => $class) { if (Input::has('clear_cache') || !Cache::has($name)) { - if ( ! class_exists($class)) { + // check that the table exists in case the migration is pending + if ( ! Schema::hasTable((new $class)->getTable())) { continue; } if ($name == 'paymentTerms') { diff --git a/app/Http/routes.php b/app/Http/routes.php index 11cb1f1de119..04e0493556b3 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -437,7 +437,7 @@ if (!defined('CONTACT_EMAIL')) { define('NINJA_GATEWAY_CONFIG', 'NINJA_GATEWAY_CONFIG'); define('NINJA_WEB_URL', 'https://www.invoiceninja.com'); define('NINJA_APP_URL', 'https://app.invoiceninja.com'); - define('NINJA_VERSION', '2.4.9.1'); + define('NINJA_VERSION', '2.4.9.2'); define('NINJA_DATE', '2000-01-01'); define('SOCIAL_LINK_FACEBOOK', 'https://www.facebook.com/invoiceninja');