Skip to content

Commit

Permalink
NEXT-12263 - Fixed a break when reading the blue-green environment va…
Browse files Browse the repository at this point in the history
…riable
  • Loading branch information
Patrick Stahl committed Nov 30, 2020
1 parent 367ad3f commit c54f01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Framework/Migration/MigrationStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ protected function addTrigger(Connection $connection, string $name, string $tabl
*/
protected function createTrigger(Connection $connection, string $query, array $params = []): void
{
$blueGreenDeployment = (int) $_ENV['BLUE_GREEN_DEPLOYMENT'];
if ($blueGreenDeployment === 0) {
$blueGreenDeployment = $_ENV['BLUE_GREEN_DEPLOYMENT'] ?? false;
if ((int) $blueGreenDeployment === 0) {
return;
}

Expand Down

0 comments on commit c54f01c

Please sign in to comment.