Skip to content
Latest (currently 2026.7.0) has the newest features, bug fixes, and CVE patches of Solo Enterprise for agentregistry.

arctl db migrate down

Page as Markdown

Roll back the N most-recent applied migrations for the selected source.

Migrations whose .down.sql raises (up-only / not-reversible migrations) will leave the schema_migrations row marked dirty after the failed rollback. Subsequent ‘up’ invocations will refuse to run until the dirty marker is cleared with ‘arctl db migrate force V’, where V is the version named in the failure message.

Usage

arctl db migrate down N [flags]

Global flags

-h, --help: Display help information for the command.
--db-url string: PostgreSQL connection URL (defaults to value of AGENT_REGISTRY_DATABASE_URL env var).
--source string: Migration source name for per-source ops (down/goto/force/version); inferred when only one source is registered. Not applicable to up or status — those aggregate across every registered source.