routingTable; $routingTable['comment_page'] = [ 'url' => '[permalink:string]/comment-page-[commentPage:digital]', 'widget' => '\Widget\CommentPage', 'action' => 'action' ]; $routingTable['feed'] = [ 'url' => '/feed[feed:string:0]', 'widget' => '\Widget\Feed', 'action' => 'render' ]; unset($routingTable[0]); $db->query($db->update('table.options') ->rows(['value' => serialize($routingTable)]) ->where('name = ?', 'routingTable')); // fix options->commentsRequireURL $db->query($db->update('table.options') ->rows(['name' => 'commentsRequireUrl']) ->where('name = ?', 'commentsRequireURL')); } }