Skip to content

Commit 343a89e

Browse files
committed
Fixed migrations docs for Option 4 migration scenario
`migrate` method is not exposed as a part of`drizzle-orm/node-postgres` ref - https://github.com/drizzle-team/drizzle-orm/blob/526996bd2ea20d5b1a0d65e743b47e23329d441c/drizzle-orm/src/node-postgres/index.ts
1 parent e7fabe3 commit 343a89e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/documentation/docs/migrations.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ CREATE TABLE "users" (
250250
```
251251
```ts
252252
// index.ts
253-
import { drizzle, migrate } from "drizzle-orm/node-postgres"
253+
import { drizzle } from "drizzle-orm/node-postgres"
254+
import { migrate } from 'drizzle-orm/node-postgres/migrator';
254255

255256
const db = drizzle(process.env.DATABASE_URL);
256257

0 commit comments

Comments
 (0)