Open KressIsMee opened 8 months ago
I'm not sure if there is a .sql dumb file will work or not but the .sql file is empty and once i run it show this error SQLiteError: no such table: pages errno: 1
at prepare (bun:sqlite:193:19)
Hey @KressIsMee,
Thanks for reaching out. I just cloned the repository and everything seems to be just fine.
> bun install
bun install v1.0.2 (37edd5a6)
+ bun-types@1.0.20
+ drizzle-kit@0.20.8
+ drizzle-orm@0.29.2
+ googleapis@129.0.0
163 packages installed [1.54s]
> bun run db
$ bun run db:generate && bun run db:migrate
$ bunx drizzle-kit generate:sqlite --schema ./src/db/schema.ts
drizzle-kit: v0.20.8
drizzle-orm: v0.29.2
1 tables
pages 3 columns 0 indexes 0 fks
[✓] Your SQL migration file ➜ drizzle/0000_organic_cyclops.sql 🚀
$ bun run src/db/migrate.ts
> bun --version
1.0.2
What's your bun version? Maybe that has to do something with the issue you are facing.
bun --version 1.0.30
bun run db bunx drizzle-kit generate:sqlite --schema ./src/db/schema.ts error: script "db:generate" was terminated by signal SIGILL (Illegal instruction) /usr/bin/bash: line 1: 575367 Illegal instruction (core dumped) bun run db:generate error: script "db" exited with code 132
I'm so frustrated , bun cant build or create a database can u upload a null version of db other wise i don't think i will work i have tried all
Is your operating system Windows? I would advise the following:
If your OS is Windows, run whatever BASH simulator you are running as admin.
If not, try downgrading your bun version as a last resort.
bun run db $ bun run db:generate && bun run db:migrate $ bunx drizzle-kit generate:sqlite --schema ./src/db/schema.ts error: script "db:generate" was terminated by signal SIGILL (Illegal instruction) /usr/bin/bash: line 1: 381008 Illegal instruction (core dumped) bun run db:generate error: script "db" exited with code 132