. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Schema; use Fisharebest\Webtrees\Database; /** * Upgrade the database schema from version 19 to version 20. */ class Migration19 implements MigrationInterface { /** * Upgrade to to the next version * * @return void */ public function upgrade() { // Fix some broken data caused by a bug Database::exec("UPDATE `##default_resn` SET xref = NULL WHERE xref = ''"); Database::exec("UPDATE `##default_resn` SET tag_type = NULL WHERE tag_type = ''"); } }