@@ -29,6 +29,11 @@ final class ImportDossier
|
||||
{
|
||||
$db = DB::connection();
|
||||
|
||||
if (app(StandaloneRuntime::class)->enabled()) {
|
||||
return app(StandaloneRuntime::class)->feature('import-dossier', $db)
|
||||
&& $db->getSchemaBuilder()->hasTable('supply_records');
|
||||
}
|
||||
|
||||
return config('import-dossier.qa_enabled') === true && app()->environment('testing')
|
||||
&& (($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