mirror of
https://github.com/Karaka-Management/oms-RiskManagement.git
synced 2026-01-11 19:38:40 +00:00
63 lines
1.5 KiB
PHP
63 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.0
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @copyright 2013 Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
namespace Modules\RiskManagement\Admin;
|
|
|
|
|
|
use phpOMS\DataStorage\Database\Pool;
|
|
use phpOMS\DataStorage\Database\Schema\Builder;
|
|
use phpOMS\Module\UninstallAbstract;
|
|
|
|
/**
|
|
* Navigation class.
|
|
*
|
|
* @category Modules
|
|
* @package Modules\Admin
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
|
* @license OMS License 1.0
|
|
* @link http://orange-management.com
|
|
* @since 1.0.0
|
|
*/
|
|
class Uninstall extends UninstallAbstract
|
|
{
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function uninstall(Pool $dbPool, array $info)
|
|
{
|
|
parent::uninstall($dbPool, $info);
|
|
|
|
$query = new Builder($dbPool->get());
|
|
|
|
$query->prefix($dbPool->get('core')->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();
|
|
}
|
|
}
|