Skip to content

Commit

Permalink
Merge pull request #2732 from Karibash/bugfix/double-type-column
Browse files Browse the repository at this point in the history
bugfix: Fix a bug that import statements for columns of type double are not inserted
  • Loading branch information
AndriiSherman authored Aug 7, 2024
2 parents de29027 + 9b358f9 commit cd71182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drizzle-kit/src/introspect-mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const schemaToTypeScript = (
patched = patched.startsWith('datetime(') ? 'datetime' : patched;
patched = patched.startsWith('varbinary(') ? 'varbinary' : patched;
patched = patched.startsWith('int(') ? 'int' : patched;
patched = patched.startsWith('double(') ? 'double' : patched;
return patched;
})
.filter((type) => {
Expand Down

0 comments on commit cd71182

Please sign in to comment.