From 85f1572d6b9feb1573c0bd6b57f59a01919c54d7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 21 Dec 2018 20:22:10 +0100 Subject: [PATCH] Remove default uninstall --- Admin/Uninstaller.php | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Admin/Uninstaller.php b/Admin/Uninstaller.php index 4bed2a6..f2a68f3 100644 --- a/Admin/Uninstaller.php +++ b/Admin/Uninstaller.php @@ -20,7 +20,7 @@ use phpOMS\Module\InfoManager; use phpOMS\Module\UninstallerAbstract; /** - * Navigation class. + * Uninstaller class. * * @package Modules\HumanResourceManagement\Admin * @license OMS License 1.0 @@ -29,24 +29,4 @@ use phpOMS\Module\UninstallerAbstract; */ class Uninstaller extends UninstallerAbstract { - - /** - * {@inheritdoc} - */ - public static function uninstall(DatabasePool $dbPool, InfoManager $info) : void - { - parent::uninstall($dbPool, $info); - - $query = new Builder($dbPool->get()); - - $query->prefix($dbPool->get()->getPrefix())->drop( - 'hr_planning_staff', - 'hr_planning_shift', - 'hr_staff_contract', - 'hr_staff_history', - 'hr_staff' - ); - - $dbPool->get()->con->prepare($query->toSql())->execute(); - } }