Skip to content

Commit

Permalink
Use strict comparison in DiffCommand for generated sql (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
tifabien authored and mikeSimonson committed Jul 26, 2016
1 parent 3c5cdb1 commit c501942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private function buildCodeFromSql(Configuration $configuration, array $sql, $for
array_unshift(
$code,
sprintf(
"\$this->abortIf(\$this->connection->getDatabasePlatform()->getName() != %s, %s);",
"\$this->abortIf(\$this->connection->getDatabasePlatform()->getName() !== %s, %s);",
var_export($currentPlatform, true),
var_export(sprintf("Migration can only be executed safely on '%s'.", $currentPlatform), true)
),
Expand Down

0 comments on commit c501942

Please sign in to comment.