src/Neutrino/Database/Migrations/Storage/DatabaseStorage.php
public function log($migration, $batch)
    {
        $migration = new MigrationModel([
            'migration' => $migration,
            'batch'     => $batch
        ]);

        if (!$this->repository->create($migration)) {
            $messages = array_map(function ($message) {
                return (string)$message;
            }, $this->repository->getMessages());

            throw new \Exception(implode(PHP_EOL, $messages));
        }
    }
public function log($migration, $batch)
    {
        $migration = new MigrationModel([
            'migration' => $migration,
            'batch'     => $batch
        ]);

        if (!$this->repository->create($migration)) {
            $messages = array_map(function ($message) {
                return (string)$message;
            }, $this->repository->getMessages());

            throw new \Exception(implode(PHP_EOL, $messages));
        }
    }
Log that a migration was run.

@param string $migration Migration Name
@param int    $batch     Batch number

@throws \Exception
@return void