Skip to content

Commit 255390f

Browse files
authored
Fixed bug that sqlite migration does not work. (#7414)
1 parent 6d004fd commit 255390f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Schema/Blueprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function toSql(Connection $connection, Grammar $grammar)
160160
$method = 'compile' . ucfirst($command->name);
161161

162162
if (method_exists($grammar, $method)) {
163-
if (! is_null($sql = $grammar->{$method}($this, $command, $connection))) {
163+
if (! empty($sql = $grammar->{$method}($this, $command, $connection))) {
164164
$statements = array_merge($statements, (array) $sql);
165165
}
166166
}

0 commit comments

Comments
 (0)