lettucebaran
Explore posts from serversDTDrizzle Team
•Created by lettucebaran on 7/20/2024 in #help
Can't alter column from `.notNull()` to `allow null`
Background
I have an SQLite db, and a schema.
I edited my schema to:
Aim
Assuming the business logic is correct, I aimed to migrate my database with
drizzle-kit generate
and <apply migration script>.
Problem
However, after running the generate script, no migration was generated. How can I make C1 allow NULL
values?
Environment
Related SEO tags so others can find the problem and the solution quicker: NOT NULL constraint failed4 replies
DTDrizzle Team
•Created by lettucebaran on 6/4/2024 in #help
Type error when inserting
Aim
insert row to
contactInformationTable
My attempt
7 replies
DTDrizzle Team
•Created by lettucebaran on 5/20/2024 in #help
`drizzle-kit studio` is unable to launch D1 db (prod, remote)
Steps to reproduce:
1. Clone https://github.com/cjxe/nextjs-d1-drizzle-cloudflare-pages
2. Follow
README.md
.
3. Run pnpm db:studio:local
. Verify that viewing the local d1 db is fine.
4. Run pnpm db:studio:prod
. Verify that drizzle-kit is unable to view the d1 prod remote db.
Error:
📁 drizzle.config.ts
: https://github.com/cjxe/nextjs-d1-drizzle-cloudflare-pages/blob/main/drizzle.config.ts2 replies