This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
v0.21.3
Cloudflare D1 HTTP API support 🎉
Drizzle Chrome Extension now has support for Cloudflare D1!
Drizzle Kit now lets you run migrate
, push
, introspect
and studio
commands using Cloudflare D1 HTTP API, you just need to update connection params in drizzle.config.ts
:
dialect: "sqlite",
+ driver: "d1-http",
dbCredentials: {
+ accountId: "...",
+ databaseId: "...",
+ token: "...",
}
You can find accountId
, databaseId
and token
in Cloudflare dashboard
To get accountId
go to Workers & Pages -> Overview -> copy Account ID from the right sidebar
To get databaseId
open D1 database you want to connect to and copy Database ID
To get token
go to My profile -> API Tokens and create token with D1 edit permissions
Bug fixes
- fix broken
check
command #2284 - fix sqlite push error #395
- fix rename column in composite pk #2344
- process.exit(1) on error #2354
- fix non-detected changes #2345 #2336
- fix constraint changes #2327
- fix push bug #2324
- d1 driver support #2292
- column renames alongside table renames in
postgres
dialect #2346 - generate error #420
- remove schemas from mysql migration statements #2310