From c17fe6f2884d77ca2ddca984527e6298e087bad6 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 19 Mar 2020 08:54:29 +0200 Subject: [PATCH] Updated SDK --- app/tasks/upgrade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`;