mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-02 14:24:27 -04:00
Update app/Database/Seeds/TestDatabaseBootstrapSeeder.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -42,6 +42,9 @@ class TestDatabaseBootstrapSeeder extends Seeder
|
||||
}
|
||||
|
||||
$sql = file_get_contents($sqlFile);
|
||||
if ($sql === false) {
|
||||
throw new \RuntimeException("Unable to read SQL file: {$sqlFile}");
|
||||
}
|
||||
|
||||
foreach (explode(";", $sql) as $statement) {
|
||||
$trim = trim($statement);
|
||||
|
||||
Reference in New Issue
Block a user