% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/migrations.R
\name{apply_pending_migrations}
\alias{apply_pending_migrations}
\title{Apply pending value set migrations}
\usage{
apply_pending_migrations(ask = TRUE)
}
\arguments{
\item{ask}{Logical. Whether to ask for confirmation before
applying migrations. Defaults to TRUE.}
}
\value{
Invisibly returns a character vector of migration IDs
  that were applied in this session.
}
\description{
Fetches the migrations index from the repository and applies
any renames that have not yet been applied locally. This
ensures that value set codes remain consistent when a country
publishes a second value set and the original code needs to
be disambiguated with a year suffix.
}
\details{
Migrations are applied before checking for new value sets in
\code{update_value_sets()}, ensuring the local state is
consistent before any new installations.
}
\keyword{internal}
