本文へ移動
cccskills
無料GitHub で公開

prisma-migrate

Create a Prisma migration for a schema change against the local database. Use after editing prisma/schema.prisma.

日本語の概要は準備中です。原文の説明を表示しています。

howard36/probaseスター 20(GitHub 20 + cccskills 0)

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Migration name (from arguments, kebab-case; ask if missing): $ARGUMENTS

  1. Confirm prisma/schema.prisma has the intended change and nothing else (git diff prisma/schema.prisma).
  2. Generate and apply the migration against the local DB. The env wrapper is required; Prisma does not read .env.local on its own:
    npm run local -- prisma migrate dev --name $ARGUMENTS
    
  3. Read the generated SQL under prisma/migrations/<timestamp>_<name>/migration.sql and check for destructive statements (DROP COLUMN, DROP TABLE, type changes on populated columns). Call these out explicitly in your reply.
  4. If the change affects seed data, update prisma/seed.mjs and re-run npm run local -- prisma db seed.
  5. Run /verify.

Remind the user in your reply: merging this PR to main runs prisma migrate deploy against production automatically. Never run migrations with npm run prod -- ... yourself.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

pr

無料

Commit the current changes on a new branch, push, and open a GitHub PR following this repo's conventions.

日本語の概要は準備中です。原文の説明を表示しています。

howard36/probase202026年9月26日 更新

verify

無料

Verify a change is done by running lint, the Prettier check, the test suites, and a production build. Use after finishing any code change and before opening a PR.

日本語の概要は準備中です。原文の説明を表示しています。

howard36/probase202026年9月26日 更新

howard36 のスキルをすべて見る

このスキルの問題を報告する