You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/db-migrate.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ Run a Prisma migration for the current schema changes.
7
7
1. Ask the user for a short migration name that describes what changed (e.g. `add-object-storage-pool`, `add-user-avatar-field`).
8
8
2. Run the migration:
9
9
```bash
10
-
yarn db:migrate --name <migration-name>
10
+
bun run db:migrate --name <migration-name>
11
11
```
12
-
3. Run `yarn db:generate` to update the Prisma client.
12
+
3. Run `bun run db:generate` to update the Prisma client.
13
13
4. Report the new migration file created under `prisma/migrations/`.
14
14
15
-
If `yarn db:migrate` fails due to a destructive change (dropping a column, renaming), explain the impact and ask whether to proceed with `--create-only` so the SQL can be reviewed first.
15
+
If `bun run db:migrate` fails due to a destructive change (dropping a column, renaming), explain the impact and ask whether to proceed with `--create-only` so the SQL can be reviewed first.
0 commit comments