You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial migration file generated with drizzle-kit generate for an existing project seemed to use a CREATE TABLE table_name (..) format, rather than CREATE TABLE IF NOT EXISTS table_name (...).
At least this was the case for me for a turso/sqlite driver/dialect config and drizzle-kit: v0.21.2.
drizzle-kit introspect also did not add IF NOT EXISTS.
Shouldn't IF NOT EXISTS be use here, so that it can gracefully skip existing tables? The same should apply to index generating statements.
The text was updated successfully, but these errors were encountered:
jschuur
changed the title
Breakpoints in migration don't work with Turso, initial migration should use IF NOT EXISTS
[BUG] Breakpoints in migration don't work with Turso, initial migration should use IF NOT EXISTS
May 15, 2024
jschuur
changed the title
[BUG] Breakpoints in migration don't work with Turso, initial migration should use IF NOT EXISTS
[BUG] Initial migration should use IF NOT EXISTS
May 23, 2024
The initial migration file generated with
drizzle-kit generate
for an existing project seemed to use aCREATE TABLE table_name (..)
format, rather thanCREATE TABLE IF NOT EXISTS table_name (...)
.At least this was the case for me for a turso/sqlite driver/dialect config and drizzle-kit: v0.21.2.
drizzle-kit introspect
also did not addIF NOT EXISTS
.Shouldn't
IF NOT EXISTS
be use here, so that it can gracefully skip existing tables? The same should apply to index generating statements.The text was updated successfully, but these errors were encountered: