Skip to content

Commit

Permalink
Merge pull request #134 from designmynight/fix_apply_grammar
Browse files Browse the repository at this point in the history
fix_apply_grammar
  • Loading branch information
MihailProcudin authored Mar 22, 2022
2 parents 38731f5 + 1217ed7 commit 743118b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ public function binary($column): PropertyDefinition
public function build(Connection $connection, Grammar $grammar)
{
foreach ($this->toSql($connection, $grammar) as $statement) {
$connection->statement($statement);
if ($connection->pretending()) {
return;
}

$statement($this, $connection);
}
}

Expand Down

0 comments on commit 743118b

Please sign in to comment.