Skip to content

Commit e6573f7

Browse files
authored
Merge pull request #374 from drizzle-team/dankochetov-patch-1
2 parents ffdf7d0 + 60d121d commit e6573f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drizzle-orm/src/pg-core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ const publicUsersTable = pgTable('users', {
381381
id: serial('id').primaryKey(),
382382
name: text('name').notNull(),
383383
verified: boolean('verified').notNull().default(false),
384-
jsonb: jsonb<string[]>('jsonb'),
384+
jsonb: jsonb('jsonb').$type<string[]>(),
385385
createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
386386
});
387387

@@ -393,7 +393,7 @@ const usersTable = mySchema.table('users', {
393393
id: serial('id').primaryKey(),
394394
name: text('name').notNull(),
395395
verified: boolean('verified').notNull().default(false),
396-
jsonb: jsonb<string[]>('jsonb'),
396+
jsonb: jsonb('jsonb').$type<string[]>(),
397397
createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
398398
});
399399
```

0 commit comments

Comments
 (0)