drizzle-team / drizzle-team/drizzle-orm

[BUG]: sqlite __drizzle_migrations id is of "SERIAL" type, which is not a valid type in sqlite

Open
#1,227 0 comments 3 reactions 0 assignees View on GitHub
bug bug/fixed-in-beta db/sqlite drizzle/kit priority
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

0.28.6

### What version of `drizzle-kit` are you using?

0.19.13

### Describe the Bug

sqlite __drizzle_migrations id shows that it is of "SERIAL" type, which is not a valid type in sqlite

Some tools which introspect dbs such as atlasgo error due to this

### Expected behavior

The migrations table should use a valid sqlite data type

### Environment & setup

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating the SQLite migration-table generation path in drizzle-kit and inspect how the __drizzle_migrations id column type is selected. Verify the generated schema with SQLite and an introspection tool such as Atlas; done means the id uses a valid SQLite type and migration setup still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
sqlite, typescript
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.