Skip to content

Commit 563345b

Browse files
committed
Silently unlink all SQlite files
1 parent 0b15d4d commit 563345b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/NativeServiceProvider.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,11 @@ public function removeDatabase()
140140

141141
if (config('app.debug')) {
142142
$databasePath = database_path('nativephp.sqlite');
143-
144-
if (! file_exists($databasePath)) {
145-
return;
146-
}
147143
}
148144

149-
unlink($databasePath);
145+
@unlink($databasePath);
146+
@unlink($databasePath.'-shm');
147+
@unlink($database.'-wal');
150148
}
151149

152150
protected function configureDisks(): void

0 commit comments

Comments
 (0)