DmitryDulepov\Realurl\ext_update::main PHP Method

main() public method

Runs the update.
public main ( )
    public function main()
    {
        $locker = $this->getLocker();
        try {
            if ($locker) {
                $locker->acquire();
            }
        } catch (\Exception $e) {
            // Nothing
        }
        $this->checkAndRenameTables();
        $this->checkAndUpdatePathCachePrimaryKey();
        $this->updateRealurlTableStructure();
        $this->removeUrlDataEntriesWithIgnoredParameters();
        if ($locker && (method_exists($locker, 'isAcquired') && $locker->isAcquired() || method_exists($locker, 'getLockStatus') && $locker->getLockStatus())) {
            $locker->release();
        }
    }