diff --git a/src/Core/Framework/Migration/MigrationStep.php b/src/Core/Framework/Migration/MigrationStep.php index fd4d9e69411..0ff52200654 100644 --- a/src/Core/Framework/Migration/MigrationStep.php +++ b/src/Core/Framework/Migration/MigrationStep.php @@ -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; }