跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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 的全部技能

报告此技能的问题