. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Schema; use Fisharebest\Webtrees\Database; use Fisharebest\Webtrees\DebugBar; use PDOException; /** * Upgrade the database schema from version 8 to version 9. */ class Migration8 implements MigrationInterface { /** * Upgrade to to the next version * * @return void */ public function upgrade(): void { // Add support for the persian/jalali calendar try { Database::exec( "ALTER TABLE `##dates` CHANGE d_type d_type ENUM('@#DGREGORIAN@', '@#DJULIAN@', '@#DHEBREW@', '@#DFRENCH R@', '@#DHIJRI@', '@#DROMAN@', '@#DJALALI@')" ); } catch (PDOException $ex) { // Already been run? } } }