public function getLastMigrationId(Connection $conn, BaseDriver $driver) { $meta = new Metadata($conn, $driver); return $meta['migration'] ?: 0; }