diff --git a/app/tasks/upgrade.php b/app/tasks/upgrade.php index 4e31738835..d00854beea 100644 --- a/app/tasks/upgrade.php +++ b/app/tasks/upgrade.php @@ -64,8 +64,8 @@ $callbacks = [ $offset = $offset + $limit; } - $schema = $requset->getServer('_APP_DB_SCHEMA'); - + $schema = (isset($_SERVER['_APP_DB_SCHEMA'])) ? $_SERVER['_APP_DB_SCHEMA'] : ''; + try { $statement = $db->prepare(" ALTER TABLE `{$schema}`.`app_{$project->getId()}.audit.audit` DROP COLUMN IF EXISTS `userType`;