@@ -41,15 +41,16 @@ class Builder extends BaseBuilder
4141 public static $ defaultMorphKeyType = 'uuid ' ;
4242
4343 /**
44+ * @param null $schema
4445 * @inheritDoc Adds a parent key, for tracking interleaving
4546 *
4647 * @return list<array{ name: string, type: string, parent: string }>
4748 */
48- public function getTables ()
49+ public function getTables ($ schema = null )
4950 {
5051 /** @var list<array{ name: string, type: string, parent: string }> */
5152 return $ this ->connection ->select (
52- $ this ->grammar ->compileTables (),
53+ $ this ->grammar ->compileTables (null ),
5354 );
5455 }
5556
@@ -87,7 +88,7 @@ protected function createBlueprint($table, ?Closure $callback = null)
8788 /** @phpstan-ignore isset.property */
8889 return isset ($ this ->resolver )
8990 ? ($ this ->resolver )($ table , $ callback )
90- : new Blueprint ($ table , $ callback );
91+ : new Blueprint ($ this -> connection , $ table , $ callback );
9192 }
9293
9394 /**
@@ -135,7 +136,7 @@ public function dropAllTables()
135136 foreach ($ foreigns as $ foreign ) {
136137 $ blueprint ->dropForeign ($ foreign );
137138 }
138- array_push ($ queries , ...$ blueprint ->toSql ($ connection , $ this -> grammar ));
139+ array_push ($ queries , ...$ blueprint ->toSql ());
139140 }
140141 /** @var Connection $connection */
141142 $ connection ->runDdlBatch ($ queries );
@@ -153,7 +154,7 @@ public function dropAllTables()
153154 $ blueprint ->dropIndex ($ index );
154155 }
155156 $ blueprint ->drop ();
156- array_push ($ queries , ...$ blueprint ->toSql ($ connection , $ this -> grammar ));
157+ array_push ($ queries , ...$ blueprint ->toSql ());
157158 }
158159 $ connection ->runDdlBatch ($ queries );
159160 }
0 commit comments