Skip to content

Commit fc485b0

Browse files
committed
docs: rename to db:generate
1 parent fde3364 commit fc485b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/content/docs/3.recipes/2.drizzle.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,19 +75,19 @@ export const users = sqliteTable('users', {
7575
})
7676
```
7777

78-
### `npm run migrate`
78+
### `npm run db:generate`
7979

80-
Let's add a `migrate` script to the `package.json`:
80+
Let's add a `db:generate` script to the `package.json`:
8181

8282
```json [package.json]
8383
{
8484
"scripts": {
85-
"migrate": "drizzle-kit generate:sqlite"
85+
"db:generate": "drizzle-kit generate:sqlite"
8686
}
8787
}
8888
```
8989

90-
When running the `npm run migrate` command, `drizzle-kit` will generate the migrations based on `server/database/schema.ts` and save them in the `server/database/migrations` directory.
90+
When running the `npm run db:generate` command, `drizzle-kit` will generate the migrations based on `server/database/schema.ts` and save them in the `server/database/migrations` directory.
9191

9292
### Migrations
9393

0 commit comments

Comments
 (0)