March Docs

CmdDepot

lib/cmd_depot.march — Bastion stub for CmdDepot (migration runner)

This stub satisfies the compile-time dependency of lib/forge/depot_*.march forge tasks during forge test and forge build. The real CmdDepot implementation is provided by depot/lib/forge/cmd_depot.march and is used when the depot archive tasks run.

Do not use this module directly — use forge bastion.depot.migrate etc.

Functions

fnmigratemigrate() : Result(String, String)#

Run all pending Depot migrations.

fnmigrationsmigrations() : Result(String, String)#

List all migrations and their status.

fnresetreset() : Result(String, String)#

Reset the database by dropping and recreating all tables.

fnrollbackrollback(_n : Int) : Result(String, String)#

Roll back the last N Depot migrations.