ソース情報
- リポジトリ
- c9s/rockhopper
- ソースの最終更新活動
- 2026年7月3日 08:24
- 検出された SKILL.md の言語
- 英語
- スター
- 18
- フォーク
- 5
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/c9s/rockhopper --skill apply-migrationsコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
Compile SQL migration files into Go source code for embedding in binaries
Create new SQL migration files for multiple database dialects (sqlite3, mysql, postgres, tidb, redshift, clickhouse)
Show the current migration status for all configured databases
SOC 職業分類に基づく
SKILL.md を表示中
| name | apply-migrations |
| description | Apply pending database migrations (rockhopper up) |
| disable-model-invocation | true |
| argument-hint | [config_file] |
Apply pending migrations using rockhopper.
$ARGUMENTS is provided, use it as the config file path. Otherwise, find all rockhopper_*.yaml config files and ask the user which one to use.rockhopper --config <config_file> up
If up fails with an "out-of-order migrations detected" error, it means a pending migration has a lower version than one that is already applied (common after merging parallel branches). Do not blindly re-run with --allow-out-of-order. Instead:
rockhopper --config <config_file> up --allow-out-of-order, only if the older migration is independent of the newer ones.If the user needs to override the DSN or driver, remind them they can set:
ROCKHOPPER_DRIVER - database driver nameROCKHOPPER_DIALECT - SQL dialect name; one of postgres, mysql, sqlite3, tidb, redshift, clickhouseROCKHOPPER_DSN - data source name connection stringAll listed dialects support schema migrations (up/down/status). Data migrations (the lease-based backfill API) require conditional UPDATE ... RETURNING RowsAffected==1 semantics and are therefore not supported on ClickHouse, which is capability-gated and returns ErrDataMigrationUnsupported.