133c34396SGreg Roach<?php 23976b470SGreg Roach 333c34396SGreg Roach/** 433c34396SGreg Roach * webtrees: online genealogy 5d11be702SGreg Roach * Copyright (C) 2023 webtrees development team 633c34396SGreg Roach * This program is free software: you can redistribute it and/or modify 733c34396SGreg Roach * it under the terms of the GNU General Public License as published by 833c34396SGreg Roach * the Free Software Foundation, either version 3 of the License, or 933c34396SGreg Roach * (at your option) any later version. 1033c34396SGreg Roach * This program is distributed in the hope that it will be useful, 1133c34396SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 1233c34396SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1333c34396SGreg Roach * GNU General Public License for more details. 1433c34396SGreg Roach * You should have received a copy of the GNU General Public License 1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>. 1633c34396SGreg Roach */ 17fcfa147eSGreg Roach 1833c34396SGreg Roachdeclare(strict_types=1); 1933c34396SGreg Roach 2033c34396SGreg Roachnamespace Fisharebest\Webtrees\Schema; 2133c34396SGreg Roach 22*6f4ec3caSGreg Roachuse Fisharebest\Webtrees\DB; 2333c34396SGreg Roachuse Illuminate\Database\Schema\Blueprint; 2433c34396SGreg Roach 2533c34396SGreg Roach/** 2633c34396SGreg Roach * Upgrade the database schema from version 41 to version 42. 2733c34396SGreg Roach */ 2833c34396SGreg Roachclass Migration41 implements MigrationInterface 2933c34396SGreg Roach{ 3033c34396SGreg Roach public function upgrade(): void 3133c34396SGreg Roach { 320b5fd0a6SGreg Roach DB::schema()->table('module', static function (Blueprint $table): void { 3333c34396SGreg Roach $table->integer('footer_order')->nullable()->after('sidebar_order'); 3433c34396SGreg Roach }); 3533c34396SGreg Roach } 3633c34396SGreg Roach} 37