I am working with SvelteKit, Turso, and drizzle-orm to and drizzle pushing to Turso was working a couple of days ago, but may have cropped up when I accidentally somehow uninstalled better-sqlite3 which drizzle was using for migration and push. I reinstalled it and was met with a new error. This error comes up whenever I try to add a new integer column of any configuration to an existing table. I have a table called test-products in the following schema. Adding the column 'ratings' and running drizzle push yields the following error.
npm run drizzle:push
> stoners-hearth-website-svelte@0.0.1 drizzle:push
> drizzle-kit push:sqlite - schema=./drizzle/schema.ts
No config path provided, using default path
Reading config file '/home/jmorrow/code/canna-brothers-dist-website-svelte/drizzle.config.ts'
drizzle-kit: v0.19.13
drizzle-orm: v0.28.6
LibsqlError: SQL_PARSE_ERROR: SQL string could not be parsed: near MINUS, "None": syntax error at (1, 18)
at mapHranaError (/home/jmorrow/code/canna-brothers-dist-website-svelte/node_modules/drizzle-kit/index.cjs:48441:12)
at HranaClient.execute (/home/jmorrow/code/canna-brothers-dist-website-svelte/node_modules/drizzle-kit/index.cjs:48481:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TursoSqlite.run (/home/jmorrow/code/canna-brothers-dist-website-svelte/node_modules/drizzle-kit/index.cjs:42935:9)
at async Command.<anonymous> (/home/jmorrow/code/canna-brothers-dist-website-svelte/node_modules/drizzle-kit/index.cjs:53505:9) {
code: 'SQL_PARSE_ERROR',
[cause]: [ResponseError: SQL string could not be parsed: near MINUS, "None": syntax error at (1, 18)] {
code: 'SQL_PARSE_ERROR',
proto: {
message: 'SQL string could not be parsed: near MINUS, "None": syntax error at (1, 18)',
code: 'SQL_PARSE_ERROR'
}
}
}
###
What version ofdrizzle-orm
are you using?0.28.6
What version of
drizzle-kit
are you using?0.19.13
Describe the Bug
I am working with SvelteKit, Turso, and drizzle-orm to and drizzle pushing to Turso was working a couple of days ago, but may have cropped up when I accidentally somehow uninstalled better-sqlite3 which drizzle was using for migration and push. I reinstalled it and was met with a new error. This error comes up whenever I try to add a new integer column of any configuration to an existing table. I have a table called test-products in the following schema. Adding the column 'ratings' and running drizzle push yields the following error.
This is my schema.
Here is my package.json and package.lock. I feel they may be valuable because of the better-sqlite3 missing message I mentioned before.
I really have no idea where to begin on this so any help is appreciated. Also, new to issues so sorry for any bad etiquette.
Expected behavior
I expect to push the new integer column 'ratings' to my Turso sqlite/libsql database.
Environment & setup
Svetekit, drizzle-orm, Turso, tailwind, skeleton UI, typescript