1*1b49861aSGreg Roach<?php 2*1b49861aSGreg Roach/** 3*1b49861aSGreg Roach * webtrees: online genealogy 4*1b49861aSGreg Roach * Copyright (C) 2015 webtrees development team 5*1b49861aSGreg Roach * This program is free software: you can redistribute it and/or modify 6*1b49861aSGreg Roach * it under the terms of the GNU General Public License as published by 7*1b49861aSGreg Roach * the Free Software Foundation, either version 3 of the License, or 8*1b49861aSGreg Roach * (at your option) any later version. 9*1b49861aSGreg Roach * This program is distributed in the hope that it will be useful, 10*1b49861aSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 11*1b49861aSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*1b49861aSGreg Roach * GNU General Public License for more details. 13*1b49861aSGreg Roach * You should have received a copy of the GNU General Public License 14*1b49861aSGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 15*1b49861aSGreg Roach */ 16*1b49861aSGreg Roachnamespace Fisharebest\Webtrees\Schema; 17*1b49861aSGreg Roach 18*1b49861aSGreg Roachuse Fisharebest\Webtrees\Database; 19*1b49861aSGreg Roach 20*1b49861aSGreg Roach/** 21*1b49861aSGreg Roach * Upgrade the database schema from version 33 to version 34. 22*1b49861aSGreg Roach */ 23*1b49861aSGreg Roachclass Migration33 implements MigrationInterface { 24*1b49861aSGreg Roach /** 25*1b49861aSGreg Roach * Upgrade to to the next version 26*1b49861aSGreg Roach */ 27*1b49861aSGreg Roach public function upgrade() { 28*1b49861aSGreg Roach Database::exec( 29*1b49861aSGreg Roach "INSERT IGNORE INTO `##site_access_rule` (user_agent_pattern, rule, comment) VALUES" . 30*1b49861aSGreg Roach " ('Mozilla/5.0 (Mobile; Windows Phone 8.1; % Microsoft; %', 'allow', 'Windows Phone 8.1')" 31*1b49861aSGreg Roach ); 32*1b49861aSGreg Roach } 33*1b49861aSGreg Roach} 34