@@ -23,6 +23,11 @@ final class ImportLandedCosts
|
||||
public function ready(): bool
|
||||
{
|
||||
$db = DB::connection();
|
||||
|
||||
if (app(StandaloneRuntime::class)->enabled()) {
|
||||
return app(StandaloneRuntime::class)->feature('import-landed-costs', $db)
|
||||
&& class_exists(BudgetLandedCostPlan::class);
|
||||
}
|
||||
$isolated = ($db->getDriverName() === 'sqlite' && $db->getDatabaseName() === ':memory:')
|
||||
|| ($db->getDriverName() === 'pgsql' && preg_match('/^compras_receipts_test_[a-f0-9]{12}$/D', $db->getDatabaseName()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user