feat(followup-audio): soft delete unadopted recordings and expose extraction doubts
This commit is contained in:
@@ -71,6 +71,11 @@ function followupAudioTestDatabase(array $settings = []): array
|
||||
foreach (explode(';', $migration) as $statement) { if (trim($statement) !== '') { $stmt = $pdo->query($statement); $stmt->closeCursor(); } }
|
||||
}
|
||||
|
||||
$migration = preg_replace('/^--.*$/m', '', file_get_contents(dirname(__DIR__, 3) . '/sql/2026_10_12_followup_audio_soft_delete.sql'));
|
||||
for ($i = 0; $i < 2; $i++) {
|
||||
foreach (explode(';', $migration) as $statement) { if (trim($statement) !== '') { $stmt = $pdo->query($statement); $stmt->closeCursor(); } }
|
||||
}
|
||||
|
||||
return ['pdo' => $pdo, 'database' => $database, 'private' => $private, 'config' => $config,
|
||||
'actor' => ['root' => 1, 'admin_id' => 1, 'id' => 1, 'name' => 'Synthetic'], 'diagnosis_id' => 1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user