Skip to content

Commit

Permalink
add 'bytea' to column data types. (#499)
Browse files Browse the repository at this point in the history
Co-authored-by: Igal Klebanov <[email protected]>
  • Loading branch information
neographer and igalklebanov authored May 18, 2023
1 parent 22a91c5 commit 09ae7f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/operation-node/data-type-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type ColumnDataType =
| `numeric(${number}, ${number})`
| 'binary'
| `binary(${number})`
| 'bytea'
| 'date'
| 'datetime'
| `datetime(${number})`
Expand Down
4 changes: 3 additions & 1 deletion test/node/src/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ for (const dialect of DIALECTS) {
.addColumn('v', 'timestamptz(6)')
.addColumn('w', 'char(4)')
.addColumn('x', 'char')
.addColumn('y', 'bytea')

testSql(builder, dialect, {
postgres: {
Expand Down Expand Up @@ -101,7 +102,8 @@ for (const dialect of DIALECTS) {
'"u" timestamp(6) default current_timestamp not null,',
'"v" timestamptz(6),',
'"w" char(4),',
'"x" char)'
'"x" char,',
'"y" bytea)'
],
parameters: [],
},
Expand Down

1 comment on commit 09ae7f8

@vercel
Copy link

@vercel vercel bot commented on 09ae7f8 May 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kysely – ./

kysely-git-master-kysely-team.vercel.app
kysely.dev
kysely-kysely-team.vercel.app
www.kysely.dev

Please sign in to comment.