@@ -17,6 +17,11 @@ final class UrgentRequisitionReviews
|
||||
{
|
||||
$db = DB::connection();
|
||||
|
||||
if (app(StandaloneRuntime::class)->enabled()) {
|
||||
return app(StandaloneRuntime::class)->feature('urgent-reviews', $db)
|
||||
&& $db->getSchemaBuilder()->hasTable('supply_records');
|
||||
}
|
||||
|
||||
return config('urgent-reviews.qa_enabled') === true && app()->environment('testing')
|
||||
&& (($db->getDriverName() === 'sqlite' && $db->getDatabaseName() === ':memory:')
|
||||
|| ($db->getDriverName() === 'pgsql' && $db->getConfig('host') === '127.0.0.1'
|
||||
|
||||
Reference in New Issue
Block a user