Agent skill

migrate-down

Roll back the last database migration

Stars 286
Forks 13

Install this agent skill to your Project

npx add-skill https://github.com/kalbasit/ncps/tree/main/.agent/skills/migrate-down

SKILL.md

Roll Back Migration

  1. Determine the database engine (sqlite, postgres, or mysql).

  2. Determine the database URL for the target engine.

  3. Run the dbmate down command for the target engine. WARNING: This will roll back the last migration.

bash
dbmate --url "your_db_url_here" down
  1. If you need to update schema files after rolling back, consider running ./dev-scripts/migrate-all.py (though note it applies all up migrations).

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results