/** * {@inheritdoc} */ public function setAllAsExecuted() { $this->connection->transact(function () { $timestamp = new DateTimeValue(); $batch = $this->connection->batchInsert($this->getTableName(), ['migration', 'executed_at'], 50, ConnectionInterface::REPLACE); foreach ($this->getMigrations() as $migration) { $batch->insert(get_class($migration), $timestamp); } $batch->done(); }); }