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
Let's add a `migrate` script to the `package.json`:
80
+
Let's add a `db:generate` script to the `package.json`:
81
81
82
82
```json [package.json]
83
83
{
84
84
"scripts": {
85
-
"migrate": "drizzle-kit generate:sqlite"
85
+
"db:generate": "drizzle-kit generate:sqlite"
86
86
}
87
87
}
88
88
```
89
89
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.
0 commit comments