. */ use Fisharebest\Webtrees\Database; /** * Class Migration28 - upgrade the database schema from version 28 to version 29. */ class Migration28 implements MigrationInterface { /** {@inheritDoc} */ public function upgrade() { // Earlier versions used the wrong month number for Adar in non-leap years Database::exec( "UPDATE `##dates` SET d_mon = 7 WHERE d_mon = 6 && d_type = '@#DHEBREW@' AND MOD(7 * d_year + 1, 19) >= 7" ); } }