AGENT SKILL

migrate-down

Roll back the last database migration

License 许可
MIT
所属仓库
kalbasit/ncps-test
最近更新
2026-09-30
Stars
★ 0
Forks
0

01 前言 Front Matter

description
Roll back the last database migration

03 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.

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).

04 同仓库更多 Skills