Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Create database if not exists - Drizzle Team
DT
Drizzle Team
•
3y ago
•
2 replies
Amur
Create database if not exists
Is there a way to have create a database if it not exists
? After i create my schema and a run the first migration
, i would expect drizzle to create a database that
's specified in my connection string if it doesn
't exist
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Insert IF NOT EXISTS
DT
Drizzle Team / help
16mo ago
`drizzle-kit migrate` fails with error `Failed query: CREATE SCHEMA IF NOT EXISTS "drizzle"`
DT
Drizzle Team / help
2mo ago
User exists when no users are in database
DT
Drizzle Team / help
2y ago
Is it normal for drizzle to generate SQLs without "IF NOT EXISTS"?
DT
Drizzle Team / help
2y ago