We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba6a716 commit 9cfc3aeCopy full SHA for 9cfc3ae
tests/TestCase.php
@@ -12,7 +12,10 @@ protected function setUp(): void
12
13
// There is probably a more sane way to do this
14
if (!static::$migrated) {
15
- unlink(database_path('database.sqlite'));
+ if (file_exists(database_path('database.sqlite'))) {
16
+ unlink(database_path('database.sqlite'));
17
+ }
18
+
19
touch(database_path('database.sqlite'));
20
21
foreach(glob(database_path('migrations/*.php')) as $file) {
0 commit comments