public function uninstall()
{
if (array_key_exists('alias', static::$_moduleArray)) {
Db::forTablePrefix('modules')->where('alias', static::$_moduleArray['alias'])->deleteMany();
/* drop from sql */
$directory = 'modules/' . static::$_moduleArray['alias'] . '/database';
if (is_dir($directory)) {
$installer = new Installer(Config::getInstance());
$installer->init($directory);
$installer->rawDrop();
}
}
}