Skip to content

Commit

Permalink
docs: rename to db:generate
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 27, 2024
1 parent fde3364 commit fc485b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/content/docs/3.recipes/2.drizzle.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ export const users = sqliteTable('users', {
})
```

### `npm run migrate`
### `npm run db:generate`

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

```json [package.json]
{
"scripts": {
"migrate": "drizzle-kit generate:sqlite"
"db:generate": "drizzle-kit generate:sqlite"
}
}
```

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.
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.

### Migrations

Expand Down

0 comments on commit fc485b0

Please sign in to comment.