Skip to content

Commit

Permalink
NTR: fix column
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed May 16, 2024
1 parent 4e0e339 commit 5266d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Migration/MigrationUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function deleteColumn(string $table, string $column): void

public function columnExists(string $table, string $column): bool
{
return $this->connection->executeQuery("SHOW COLUMNS FROM " . $table . " LIKE '" . $column . "'")->fetchOne();
return (bool)$this->connection->executeQuery("SHOW COLUMNS FROM " . $table . " LIKE '" . $column . "'")->fetchOne();
}

/**
Expand Down

0 comments on commit 5266d01

Please sign in to comment.