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
Generating migration files for libsql will sometimes produce incorrect -->statement-breakpoints.
For example
Adding constraints like autoincrements to existing columns
Changing existing column type
The generated migration files will produce a
Error performing migration: LibsqlError: SQL_NO_STATEMENT: SQL string does not contain any statement
error when applying a migration with drizzle-orm/libsql/migrator.
Workaround:
Manually deleting the two statement breakpoints highlighted above fixes the issue.
[Note]
This bug forced me to read the autogenerated comments, which informed me that migrations for these constraints will be have to applied manually (by cloning the table, renaming it, dropping it, and renaming again). I think having an explicit warning during drizzle-kit generate:sqlite would be helpful!
Expected behavior
Migrations should apply without error
Environment & setup
No response
The text was updated successfully, but these errors were encountered:
What version of
drizzle-orm
are you using?0.29.1
What version of
drizzle-kit
are you using?0.20.7
Describe the Bug
Generating migration files for libsql will sometimes produce incorrect -->statement-breakpoints.
For example
The generated migration files will produce a
error when applying a migration with
drizzle-orm/libsql/migrator
.Workaround:
Manually deleting the two statement breakpoints highlighted above fixes the issue.
[Note]
This bug forced me to read the autogenerated comments, which informed me that migrations for these constraints will be have to applied manually (by cloning the table, renaming it, dropping it, and renaming again). I think having an explicit warning during drizzle-kit generate:sqlite would be helpful!
Expected behavior
Migrations should apply without error
Environment & setup
No response
The text was updated successfully, but these errors were encountered: