For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.
arctl db migrate down
選択したソースに対して、最近適用された N 件の移行をロールバックします
適用済みの最後の N 件のマイグレーションを、新しい順に各マイグレーションの .down.sql を実行して元に戻します。
.down.sql が失敗するマイグレーション (上方向専用 / 元に戻せないマイグレーション) は、ロールバック失敗後に schema_migrations 行がダーティとしてマークされたままになります。以降の up 実行は、arctl db migrate force V でダーティマーカーが解除されるまで拒否されます。ここで V は失敗メッセージに示されたバージョンです。
使用方法
arctl db migrate down N [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.