drizzle-orm
drizzle-orm copied to clipboard
Fix schema of all SQLite migration tables
Based on #2658, but fixes all SQLite migrators.
Fixes #2969
@mirague @mlafeldt I can abandon my PR.
These migrations tables should be created with STRICT. https://www.sqlite.org/stricttables.html
STRICT would have caught this.
Thoughts?
STRICT would have caught this.
@mirague That's a good idea, but Drizzle doesn't seem to support adding STRICT yet (?).
So far, we've had 3 PRs fixing the issue, but unfortunately zero interest in reviewing/merging them. ๐
Any clue of the process on how to get this merged?
https://x.com/DrizzleORM/status/1837524772202135675 ๐
Thanks! I was suffering from the same issue. I'm wating for this commit to be released.
I'm wating for this commit to be released.
@iksflow So are we. ๐
Iโm very surprised this hasnโt been merged/fixed after many months. SQLite migrations are pretty broken without this ๐คจ
Any chance to get some eyes on fixing sqlite migrations support with drizzle? @AndriiSherman
Just ran into this too. Another one that will need fixing to this list is the durable-sqlite migrator https://github.com/drizzle-team/drizzle-orm/blob/4d72640a80c8d233cd4a6470b8577917b1a622c3/drizzle-orm/src/durable-sqlite/migrator.ts#L54-L58
It's only been 5 months and numerous pings since opening this PR - enough time for the bug to manifest elsewhere. Nice!
(Pardon my snark, but it's the only way I can still deal with this project.)
I ran into the issue this PR should address while following the default install for expo https://orm.drizzle.team/docs/get-started/expo-new
bump on this, still very important change for sqlite imo
This currently stops my app from doing any migration. Can we get some eyes on this?
Does anyone know of a workaround? I use expo so I kinda rely on the migration scripts.
bump, without this, the sqlite side is impossible.
Oh man, it is officially one year.