File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,13 @@ public function schema(): SchemaBuilder
3535
3636 public function getAllTables (): array
3737 {
38+ $ schema = method_exists ($ this ->schema (), 'getCurrentSchemaName ' )
39+ ? $ this ->schema ()->getCurrentSchemaName ()
40+ : null ;
41+
3842 $ tables = method_exists ($ this ->schema (), 'getAllTables ' )
3943 ? $ this ->schema ()->getAllTables ()
40- : $ this ->schema ()->getTables ($ this -> schema ()-> getCurrentSchemaName () );
44+ : $ this ->schema ()->getTables ($ schema );
4145
4246 $ key = $ this ->tableNameColumn ();
4347
Original file line number Diff line number Diff line change @@ -103,8 +103,12 @@ protected function runMigrations(): void
103103
104104 protected function getTables (SchemaBuilder $ builder ): array
105105 {
106+ $ schema = method_exists ($ builder , 'getCurrentSchemaName ' )
107+ ? $ builder ->getCurrentSchemaName ()
108+ : null ;
109+
106110 return method_exists ($ builder , 'getAllTables ' )
107111 ? $ builder ->getAllTables ()
108- : $ builder ->getTables ($ builder -> getCurrentSchemaName () );
112+ : $ builder ->getTables ($ schema );
109113 }
110114}
You can’t perform that action at this time.
0 commit comments