skip if empty category

This commit is contained in:
Denis Duliçi 2021-01-16 16:50:47 +03:00
parent 2a3a2c5bb6
commit 86aff08e2c

View File

@ -623,6 +623,10 @@ class Version210 extends Listener
$income_category = Category::income()->enabled()->first();
$expense_category = Category::expense()->enabled()->first();
if (empty($income_category) || empty($expense_category)) {
return;
}
// Set the active company settings
setting()->setExtraColumns(['company_id' => $company->id]);
setting()->forgetAll();