Closed ravisojitra closed 1 month ago
I fixed it by replacing some lines in the setup script:
Change to
executeCommand(`bunx wrangler d1 execute ${dbName} --local --file=./drizzle/0000_setup.sql`);
Change to
executeCommand(`bunx wrangler d1 execute ${dbName} --remote --file=./drizzle/0000_setup.sql`);
Thanks @patriciobcs, It worked.
After hitting
bun run setup
Query: select count(*) from "user" ⨯ Error: D1_ERROR: no such table: user: SQLITE_ERROR at async Page (./src/app/page.tsx:29:23) digest: "4057397386" Cause: Error: no such table: user: SQLITE_ERROR at D1Database._sendOrThrow (cloudflare-internal:d1-api:67:24) at async D1PreparedStatement.raw (cloudflare-internal:d1-api:184:32) {