mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-03-07 11:58:42 +00:00
Remove default uninstall
This commit is contained in:
parent
5aef8e0c39
commit
b69c0a1425
|
|
@ -20,7 +20,7 @@ use phpOMS\Module\InfoManager;
|
|||
use phpOMS\Module\UninstallerAbstract;
|
||||
|
||||
/**
|
||||
* Navigation class.
|
||||
* Uninstaller class.
|
||||
*
|
||||
* @package Modules\RiskManagement\Admin
|
||||
* @license OMS License 1.0
|
||||
|
|
@ -29,30 +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(
|
||||
'riskmngmt_risk_solution',
|
||||
'riskmngmt_risk_cause',
|
||||
'riskmngmt_risk_media',
|
||||
'riskmngmt_risk_eval',
|
||||
'riskmngmt_risk_object',
|
||||
'riskmngmt_risk',
|
||||
'riskmngmt_process',
|
||||
'riskmngmt_project',
|
||||
'riskmngmt_category',
|
||||
'riskmngmt_department',
|
||||
'riskmngmt_unit'
|
||||
);
|
||||
|
||||
$dbPool->get()->con->prepare($query->toSql())->execute();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user