UPDATE `apw_DPageOption` SET  `value` =  'y', `show` = 'y', `title` =  'Show in sitemap.xml'  WHERE  `name` =  'isIndexing';
UPDATE `apw_DraftPageOption` SET `show` = 'y' WHERE `name` = 'isIndexing';
UPDATE `apw_PageOption` SET `show` = 'y' WHERE `name` = 'isIndexing';
UPDATE `apw_PageOption` AS `mt`
    JOIN `apw_PageOption` AS `st`
        ON `st`.`idPage` = `mt`.`idPage`
SET `mt`.`value` = `st`.`value`
    WHERE `st`.`name` = 'showInSiteMap' AND `mt`.`name` = 'isIndexing';
