@@ -21,6 +21,11 @@ final class ImportEstimates
|
||||
{
|
||||
$db = DB::connection();
|
||||
|
||||
if (app(StandaloneRuntime::class)->enabled()) {
|
||||
return app(StandaloneRuntime::class)->feature('import-estimates', $db)
|
||||
&& class_exists(BudgetImportEstimate::class) && Schema::hasTable('supply_records');
|
||||
}
|
||||
|
||||
return config('import-estimates.qa_enabled') === true && app()->environment('testing')
|
||||
&& class_exists(BudgetImportEstimate::class) && Schema::hasTable('supply_records')
|
||||
&& (($db->getDriverName() === 'sqlite' && $db->getDatabaseName() === ':memory:')
|
||||
|
||||
Reference in New Issue
Block a user