File tree 3 files changed +2
-14
lines changed
3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,6 @@ class Blueprint extends BaseBlueprint
26
26
{
27
27
protected $ commands = [];
28
28
29
- public function setTable (string $ table ): self
30
- {
31
- $ this ->table = $ table ;
32
- return $ this ;
33
- }
34
-
35
29
/**
36
30
* @return AttachPartitionDefinition|Fluent
37
31
*/
Original file line number Diff line number Diff line change @@ -71,11 +71,6 @@ public function getViewDefinition($view): string
71
71
*/
72
72
protected function createBlueprint ($ table , Closure $ callback = null )
73
73
{
74
- $ blueprint = new Blueprint ($ this ->connection , $ this ->grammar );
75
- $ blueprint ->setTable ($ table );
76
- if ($ callback instanceof Closure) {
77
- $ callback ($ blueprint );
78
- }
79
- return $ blueprint ;
74
+ return new Blueprint ($ this ->connection , $ table , $ callback );
80
75
}
81
76
}
Original file line number Diff line number Diff line change @@ -29,8 +29,7 @@ public function initializeMock(string $table)
29
29
$ this ->postgresConnection = $ this ->createMock (PostgresConnection::class);
30
30
$ this ->postgresGrammar = new PostgresGrammar ($ this ->postgresConnection );
31
31
$ this ->postgresConnection ->setSchemaGrammar ($ this ->postgresGrammar );
32
- $ this ->blueprint = new Blueprint ($ this ->postgresConnection , $ this ->postgresGrammar );
33
- $ this ->blueprint ->setTable ($ table );
32
+ $ this ->blueprint = new Blueprint ($ this ->postgresConnection , $ table );
34
33
}
35
34
36
35
/**
You can’t perform that action at this time.
0 commit comments