. */ 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 */ public function upgrade() { // 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) { DebugBar::addThrowable($ex); // already been done? } try { Database::exec( "ALTER TABLE `##sources` DROP COLUMN s_dbid" ); } catch (PDOException $ex) { DebugBar::addThrowable($ex); // already been done? } } }