SandCat
SandCat
DTDrizzle Team
Created by Tibo on 4/18/2024 in #help
Cascade delete not working
Any solutions found ? i run into this also using bun:sqlite delete cascade not working
6 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
In backend
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
And just for clean architectur keep drizzle dir only for generated files , put migration script and schema in separate dir i prefere "database" dir
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
No the path is referring to where node is executed
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
Yes because you was poiting to wrong path in migrate function
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
You already runned this ?
"db:generate": "drizzle-kit generate:pg"
"db:generate": "drizzle-kit generate:pg"
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
change this
await migrate(db, { migrationsFolder: "./drizzle/migrations" })
await migrate(db, { migrationsFolder: "./drizzle/migrations" })
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
and where you put the out folder ?
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
// drizzle.config.ts
import type { Config } from "drizzle-kit";
export default {
schema: "./path-to-schema/schema.ts",
out: "./drizzle",
} satisfies Config;
// drizzle.config.ts
import type { Config } from "drizzle-kit";
export default {
schema: "./path-to-schema/schema.ts",
out: "./drizzle",
} satisfies Config;
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
Ok it look you dont configure drizzle.config.ts also i think you dont have already generate migrations
22 replies
DTDrizzle Team
Created by Apostle Tree on 4/17/2024 in #help
Help with this error. "Can't find meta/_journal.json file"
Can you provide code for migrate.js ?
22 replies
DTDrizzle Team
Created by SandCat on 4/15/2024 in #help
Cascade doesn't work
But i use it with Bun:sqlite
5 replies
DTDrizzle Team
Created by SandCat on 4/15/2024 in #help
Cascade doesn't work
I use it like this too
achat_id: integer('achat_id').references(() => achats.id, { onDelete: 'cascade' }).notNull()
achat_id: integer('achat_id').references(() => achats.id, { onDelete: 'cascade' }).notNull()
5 replies
DTDrizzle Team
Created by SandCat on 4/15/2024 in #help
Cascade doesn't work
Any Solution please am migrating my project from sequelize evrything work nice am just stuck with delete cascade doesn't work now
5 replies