File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/Illuminate/Database/Schema Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminate \Database \Schema ;
4
4
5
+ use Illuminate \Database \QueryException ;
5
6
use Illuminate \Support \Facades \File ;
6
7
7
8
class SQLiteBuilder extends Builder
@@ -37,7 +38,13 @@ public function dropDatabaseIfExists($name)
37
38
*/
38
39
public function getTables ()
39
40
{
40
- $ withSize = rescue (fn () => $ this ->connection ->scalar ($ this ->grammar ->compileDbstatExists ()), false , false );
41
+ $ withSize = false ;
42
+
43
+ try {
44
+ $ withSize = $ this ->connection ->scalar ($ this ->grammar ->compileDbstatExists ());
45
+ } catch (QueryException $ e ) {
46
+ //
47
+ }
41
48
42
49
return $ this ->connection ->getPostProcessor ()->processTables (
43
50
$ this ->connection ->selectFromWriteConnection ($ this ->grammar ->compileTables ($ withSize ))
You can’t perform that action at this time.
0 commit comments