sqlite insert results in error: "SQLite error: no such table: main.__old_push_items"
2 of my 3 table insert work fine, but my
auctions
table inserts do not work for some reason. When I try to insert data into my sqlite db on Turso I get the following error:
Versions
Insert code uses Zod to validate, which it passes succesfully
I also tried raw sql insert but it gives the same error
5 Replies
Schema file: https://pastebin.com/Wf0WyWLe
Pastebin
import { sql } from 'drizzle-orm';import { text, integer, sqliteTab...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Also happens with a local sqlite db
You have to push or migrate your changes when you create a new table on your schema
I have pushed all changes
I continue to get this error, but one way to solve it is by deleting all the tables and pushing again. Not great, but its the only solution I've found so far.
Also encountering this after pushing changes: