We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72babce commit ce81306Copy full SHA for ce81306
src/PostgresConnection.php
@@ -108,7 +108,7 @@ public function prepareBindings(array $bindings)
108
109
protected function getDefaultSchemaGrammar()
110
{
111
- return $this->withTablePrefix(new PostgresGrammar());
+ return $this->withTablePrefix(new PostgresGrammar($this));
112
}
113
114
private function registerInitialTypes(): void
src/Schema/Builder.php
@@ -71,6 +71,9 @@ public function getViewDefinition($view): string
71
*/
72
protected function createBlueprint($table, Closure $callback = null)
73
74
- return new Blueprint($table, $callback);
+ $blueprint = new Blueprint($this->connection, $this->grammar);
75
+ $blueprint->setTable($table);
76
+ // @todo apply $callback
77
+ return $blueprint;
78
79
0 commit comments