getDriverName() === 'sqlite' && $db->getDatabaseName() === ':memory:') || ($db->getDriverName() === 'pgsql' && $db->getConfig('host') === '127.0.0.1' && preg_match('/^compras_receipts_test_[a-f0-9]{12}$/D', $db->getDatabaseName())); if (! app()->environment('testing') || ! $isolated) { throw new LogicException('Approval and budget cycle schema requires isolated QA.'); } RequisitionCycleSchema::install($db); } public function down(): void { throw new LogicException('Restore the verified pre-cycle backup and compatible artifact; never delete previous approval or financial cycles.'); } };