private function migratePages()
    {
        $existquery = "SHOW COLUMNS FROM `News` LIKE 'NewsHolderPageID';";
        /** @var DB $exists */
        $exists = DB::query($existquery);
        if ($count = $exists->numRecords()) {
            /** @var SQLQuery $query */
            $query = new SQLQuery();
            $query->setSelect(array('ID', 'NewsHolderPageID'))
                ->setFrom('News');
            $newsitems = $query->execute();
            foreach ($newsitems as $newsitem) {
                if ($newsitem['NewsHolderPageID'] && NewsHolderPage::get()->byID($newsitem['NewsHolderPageID'])) {
                    News::get()
                        ->byID($newsitem['ID'])
                        ->NewsHolderPages()->add($newsitem['NewsHolderPageID']);
                }
            }
        }
    }