protected function getMigrated(?int $batches = null): ResultSet
	{
		$query = $this->builder();

		if($batches !== null && $batches > 0)
		{
			$query->where('batch', '>', ($this->builder()->max('batch') - $batches));
		}

		return $query->select(['version', 'package'])->descending('version')->all();
	}