mirror of
https://github.com/Karaka-Management/oms-Production.git
synced 2026-01-11 22:18:40 +00:00
53 lines
1.2 KiB
PHP
53 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.1
|
|
*
|
|
* @category TBD
|
|
* @package TBD
|
|
* @author OMS Development Team <dev@oms.com>
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://orange-management.com
|
|
*/
|
|
declare(strict_types=1);
|
|
namespace Modules\Production\Admin;
|
|
|
|
use phpOMS\DataStorage\Database\DatabasePool;
|
|
use phpOMS\DataStorage\Database\Schema\Builder;
|
|
use phpOMS\Module\UninstallAbstract;
|
|
|
|
/**
|
|
* Navigation class.
|
|
*
|
|
* @category Modules
|
|
* @package Modules\Admin
|
|
* @author OMS Development Team <dev@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(DatabasePool $dbPool, InfoManager $info)
|
|
{
|
|
parent::uninstall($dbPool, $info);
|
|
|
|
$query = new Builder($dbPool->get());
|
|
|
|
$query->prefix($dbPool->get('core')->getPrefix())->drop(
|
|
'production_guideline_step',
|
|
'production_guideline',
|
|
'production_process'
|
|
);
|
|
|
|
$dbPool->get()->con->prepare($query->toSql())->execute();
|
|
}
|
|
}
|