AGENT SKILL

migrate-new

Create a new database migration for all supported engines

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

01 前言 Front Matter

description
Create a new database migration for all supported engines

03 SKILL.md 正文

Create New Migration

  1. Determine the migration name (e.g., add_users_table).

  2. Run the creation command for each supported engine. DO NOT use the --url flag:

dbmate --migrations-dir db/migrations/sqlite new "your_migration_name_here"
dbmate --migrations-dir db/migrations/postgres new "your_migration_name_here"
dbmate --migrations-dir db/migrations/mysql new "your_migration_name_here"
  1. Edit the newly created files in db/migrations/<engine>/.

  2. Follow the dbmate skill (.agent/skills/dbmate/SKILL.md) for rules on writing migrations (transaction handling, idempotent SQL, etc.).

04 同仓库更多 Skills