protected function _upgradeResourceDb($oldVersion, $newVersion) { parent::_upgradeResourceDb($oldVersion, $newVersion); $this->updateInstallationVersionHistory($oldVersion, $newVersion); $this->updateCompilation(); return $this; }
protected function _upgradeResourceDb($oldVersion, $newVersion) { $this->beforeUpgrade($oldVersion, $newVersion); parent::_upgradeResourceDb($oldVersion, $newVersion); $this->afterUpgrade($oldVersion, $newVersion); }
protected function _upgradeResourceDb($oldVersion, $newVersion) { // double running protection usleep(1000000); // 1 sec if ($this->isLocked()) { return; } $this->lock(); try { $this->beforeModuleDbModification(); $this->beforeUpgrade($oldVersion, $newVersion); parent::_upgradeResourceDb($oldVersion, $newVersion); $this->afterUpgrade($oldVersion, $newVersion); $this->afterModuleDbModification(); } catch (Exception $e) { $this->unlock(); throw $e; } $this->unlock(); }