-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migration error #1321
Comments
Thank you for bringing up the issue @kelbyfaessler . Would you have a code / SQL that reproduces the issue? |
I played around with the generated SQL and figured out the issue. The issue is in this part of a table definition
If I put parens around the strftime call, then it works
|
closing the issue since its a drizzle issue with their generated sql |
@kelbyfaessler сan you show the drizzle schema you are using? |
@AndriiSherman the line in the schema looks like this:
which means its not a drizzle issue and rather issue with my own code, right? Since I could insert the parens like so
|
According to my understanding you're right @kelbyfaessler. This is an issue with the code not drizzle itself but @AndriiSherman will know better. |
Yes, so the case here is that if you are using the |
Using Turso with drizzle + sveltekit. Sveltekit has import aliases like $env, $lib and for that reason, I run scripts using vite-node so imports resolve.
I created a migration and am attempting to migrate using drizzles migrate() function. Here is the libsql/hrana error.
The text was updated successfully, but these errors were encountered: