. */ use Fisharebest\Webtrees\Database; use PDOException; /** * Class Migration8 - upgrade the database schema from version 8 to version 9. */ class Migration8 implements MigrationInterface { /** {@inheritDoc} */ public function upgrade() { // 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? } } }