mirror of
https://github.com/Karaka-Management/oms-HumanResourceManagement.git
synced 2026-01-28 11:48:41 +00:00
Fixing uninstall and removing old modules
This commit is contained in:
parent
b44a1a6db4
commit
4a34faf04b
|
|
@ -17,6 +17,7 @@ namespace Modules\HumanResourceManagement\Admin;
|
|||
|
||||
|
||||
use phpOMS\DataStorage\Database\Pool;
|
||||
use phpOMS\DataStorage\Database\Schema\Builder;
|
||||
use phpOMS\Module\UninstallAbstract;
|
||||
|
||||
/**
|
||||
|
|
@ -36,8 +37,20 @@ class Uninstall extends UninstallAbstract
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static function unisntall(Pool $dbPool, array $info)
|
||||
public static function uninstall(Pool $dbPool, array $info)
|
||||
{
|
||||
parent::unisntall($dbPool, $info);
|
||||
parent::uninstall($dbPool, $info);
|
||||
|
||||
$query = new Builder($dbPool->get());
|
||||
|
||||
$query->prefix($dbPool->get('core')->getPrefix())->drop(
|
||||
'hr_planning_staff',
|
||||
'hr_planning_shift',
|
||||
'hr_staff_contract',
|
||||
'hr_staff_history',
|
||||
'hr_staff'
|
||||
);
|
||||
|
||||
$dbPool->get()->con->prepare($query->toSql())->execute();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user