File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/content/documentation/docs Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export const users = p.pgTable("users", {
161
161
└─┬──────────────────────┘
162
162
│
163
163
└ 1. read previous migration folders
164
- 2. find diff between current and previous scheama
164
+ 2. find diff between current and previous schema
165
165
3. prompt developer for renames if necessary
166
166
┌ 4. generate SQL migration and persist to file
167
167
│ ┌─┴───────────────────────────────────────┐
@@ -229,7 +229,7 @@ export const users = p.pgTable("users", {
229
229
└─┬──────────────────────┘
230
230
│
231
231
└ 1. read previous migration folders
232
- 2. find diff between current and previous scheama
232
+ 2. find diff between current and previous schema
233
233
3. prompt developer for renames if necessary
234
234
┌ 4. generate SQL migration and persist to file
235
235
│ ┌─┴───────────────────────────────────────┐
@@ -250,7 +250,8 @@ CREATE TABLE "users" (
250
250
` ` `
251
251
` ` ` ts
252
252
// 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' ;
254
255
255
256
const db = drizzle (process .env .DATABASE_URL );
256
257
You can’t perform that action at this time.
0 commit comments