From 7372db22b28a2115d1b0299a82fa6f98854cd853 Mon Sep 17 00:00:00 2001 From: Jan Wennrich <jan.wennrich@pcsg.de> Date: Tue, 17 Mar 2020 15:49:52 +0100 Subject: [PATCH] refactor: makes use of DB's new execSQL method Replaces getPDO()->exec() with execSQL() --- composer.json | 2 +- src/QUI/Bricks/Events.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3755363..734b799 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require": { "quiqqer\/quiqqer": "*@dev", "quiqqer\/qui": ">=1|dev-master|dev-dev", - "quiqqer\/utils": ">=1.4|dev-master|dev-dev", + "quiqqer\/utils": ">=1.19.2|dev-master|dev-dev", "quiqqer\/mobile-detection": "1.*|dev-master|dev-dev", "npm-asset\/hammerjs": "2.*", "npm-asset\/mustache": "2.*", diff --git a/src/QUI/Bricks/Events.php b/src/QUI/Bricks/Events.php index 8ec50d1..d3da466 100644 --- a/src/QUI/Bricks/Events.php +++ b/src/QUI/Bricks/Events.php @@ -236,7 +236,7 @@ public static function onPackageSetup(QUI\Package\Package $Package) if (QUI::getDataBase()->table()->issetPrimaryKey($projectCacheTable, 'id') && QUI::getDataBase()->table()->issetPrimaryKey($projectCacheTable, 'area')) { // Primary key no longer exists and should be removed - QUI::getDataBase()->getPDO()->exec("ALTER TABLE `{$projectCacheTable}` DROP PRIMARY KEY;"); + QUI::getDataBase()->execSQL("ALTER TABLE `{$projectCacheTable}` DROP PRIMARY KEY;"); } } catch (QUI\Exception $Exception) { QUI\System\Log::addInfo($Exception->getMessage()); -- GitLab