Skip to content

Commit

Permalink
bigquery has different data type
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Oct 12, 2024
1 parent a8a3c33 commit 5af395d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/connections/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ describe('Database Connection', () => {
await qb
.createTable(`${DEFAULT_SCHEMA}.persons`)
.column('id', 'INTEGER')
.column('name', 'STRING')
.column(
'name',
process.env.CONNECTION_TYPE === 'bigquery'
? 'STRING'
: 'VARCHAR(255)'
)
.column('age', 'INTEGER')
.query();
});
Expand Down

0 comments on commit 5af395d

Please sign in to comment.