Skip to content

Commit ce81306

Browse files
committed
some fix
1 parent 72babce commit ce81306

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/PostgresConnection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function prepareBindings(array $bindings)
108108

109109
protected function getDefaultSchemaGrammar()
110110
{
111-
return $this->withTablePrefix(new PostgresGrammar());
111+
return $this->withTablePrefix(new PostgresGrammar($this));
112112
}
113113

114114
private function registerInitialTypes(): void

src/Schema/Builder.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public function getViewDefinition($view): string
7171
*/
7272
protected function createBlueprint($table, Closure $callback = null)
7373
{
74-
return new Blueprint($table, $callback);
74+
$blueprint = new Blueprint($this->connection, $this->grammar);
75+
$blueprint->setTable($table);
76+
// @todo apply $callback
77+
return $blueprint;
7578
}
7679
}

0 commit comments

Comments
 (0)