. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Schema; use Fisharebest\Webtrees\Database; use Fisharebest\Webtrees\DebugBar; use PDOException; /** * Upgrade the database schema from version 6 to version 7. */ class Migration6 implements MigrationInterface { /** * Upgrade to to the next version * * @return void */ public function upgrade(): void { // Remove tables/columns relating to remote linking Database::exec( "DROP TABLE IF EXISTS `##remotelinks`" ); try { Database::exec( "ALTER TABLE `##sources` DROP INDEX ix2" ); } catch (PDOException $ex) { // already been done? } try { Database::exec( "ALTER TABLE `##sources` DROP COLUMN s_dbid" ); } catch (PDOException $ex) { // already been done? } } }