try { $this->connection->
executeStatement( 'ALTER TABLE `scheduled_task` DROP COLUMN `default_run_interval`;'
);
} catch (\Throwable
) { } } public function testUpdate(): void
{ $migration =
new Migration1678801126AddScheduledTaskDefaultRunIntervalColumn();
$migration->
update($this->connection
);
$migration->
update($this->connection
);
$defaultInterval =
$this->connection->
fetchOne( 'SELECT `default_run_interval` FROM `scheduled_task` WHERE `name` = "cart.cleanup";',
);
static::
assertEquals(CleanupCartTask::
getDefaultInterval(),
$defaultInterval);
}}