. */ namespace Fisharebest\Webtrees\Schema; use Fisharebest\Webtrees\Database; /** * Upgrade the database schema from version 37 to version 38. */ class Migration37 implements MigrationInterface { /** * Upgrade to to the next version */ public function upgrade() { Database::prepare( "INSERT INTO `##site_setting` (setting_name, setting_value)" . " SELECT 'next_xref', MAX(next_id) FROM `##next_id`" )->execute(); Database::prepare( "DELETE FROM `##gedcom_setting` WHERE setting_name in ('FAM_ID_PREFIX', 'GEDCOM_ID_PREFIX', 'MEDIA_ID_PREFIX', 'NOTE_ID_PREFIX', 'REPO_ID_PREFIX', 'SOURCE_ID_PREFIX')" )->execute(); Database::prepare( "DROP TABLE IF EXISTS `##next_id`" )->execute(); } }