public function actionDefault()
{
try {
$this->db->beginTransaction();
$this->db->table('addons_resources')->delete();
foreach ($this->db->table('addons') as $addon) {
$this->updateAddon($addon);
}
$this->db->commit();
} catch (\PDOException $e) {
Debugger::log($e);
$this->db->rollBack();
}
}