Skip to content

Commit 4370abd

Browse files
authored
Merge pull request #497 from AncientBison/patch-1
Fix typescript missing some commas in PostgreSQL column types
2 parents 740524a + 13cef02 commit 4370abd

File tree

1 file changed

+3
-3
lines changed
  • src/content/docs/column-types

1 file changed

+3
-3
lines changed

src/content/docs/column-types/pg.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { sql } from "drizzle-orm";
4444
import { integer, pgTable } from "drizzle-orm/pg-core";
4545

4646
export const table = pgTable('table', {
47-
int1: integer().default(10)
47+
int1: integer().default(10),
4848
int2: integer().default(sql`'10'::int`)
4949
});
5050

@@ -85,7 +85,7 @@ import { sql } from "drizzle-orm";
8585
import { smallint, pgTable } from "drizzle-orm/pg-core";
8686

8787
export const table = pgTable('table', {
88-
smallint1: smallint().default(10)
88+
smallint1: smallint().default(10),
8989
smallint2: smallint().default(sql`'10'::smallint`)
9090
});
9191
```
@@ -133,7 +133,7 @@ import { sql } from "drizzle-orm";
133133
import { bigint, pgTable } from "drizzle-orm/pg-core";
134134

135135
export const table = pgTable('table', {
136-
bigint1: bigint().default(10)
136+
bigint1: bigint().default(10),
137137
bigint2: bigint().default(sql`'10'::bigint`)
138138
});
139139
```

0 commit comments

Comments
 (0)