Skip to content

Commit 8e8f475

Browse files
committed
Merge commit '8bfd3a1a9d89e9b56ee106189aae6e0da256a600'
2 parents f7b67c0 + 8bfd3a1 commit 8e8f475

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/content/documentation/docs/migrations.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const users = p.pgTable("users", {
161161
└─┬──────────────────────┘
162162
163163
1. read previous migration folders
164-
2. find diff between current and previous scheama
164+
2. find diff between current and previous schema
165165
3. prompt developer for renames if necessary
166166
4. generate SQL migration and persist to file
167167
│ ┌─┴───────────────────────────────────────┐
@@ -229,7 +229,7 @@ export const users = p.pgTable("users", {
229229
└─┬──────────────────────┘
230230
231231
1. read previous migration folders
232-
2. find diff between current and previous scheama
232+
2. find diff between current and previous schema
233233
3. prompt developer for renames if necessary
234234
4. generate SQL migration and persist to file
235235
│ ┌─┴───────────────────────────────────────┐
@@ -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)