Skip to content

Commit

Permalink
fix(sqlite): fix bigint, ensure valid typedef (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieuzest authored May 12, 2024
1 parent 4ad01c0 commit 7f5926a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/sqlite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function getTypeDef({ deftype: type }: Field) {
case 'boolean':
case 'integer':
case 'unsigned':
case 'bigint':
case 'date':
case 'time':
case 'timestamp': return `INTEGER`
Expand All @@ -37,6 +38,7 @@ function getTypeDef({ deftype: type }: Field) {
case 'list':
case 'json': return `TEXT`
case 'binary': return `BLOB`
default: throw new Error(`unsupported type: ${type}`)
}
}

Expand Down

0 comments on commit 7f5926a

Please sign in to comment.