© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
Drizzle Team
•
3y ago
•
3 replies
pastilhas
Postgres: install plugin during migration
So
, I
'm using Drizzle with Postgres and am using uuid for the id fields
.
For that
, i need to run the command
:
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
after creating the database
.
Is there a way to automate this in the first migration file
?
Is it safe to just paste it at the begining of the first migration file
?
Thank you
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
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Lock issues / deadlock during postgres migration
DT
Drizzle Team / help
3y ago
postgres-js migration configuration
DT
Drizzle Team / help
3y ago
Drizzle postgres migration gives lots of type errors
DT
Drizzle Team / help
2y ago
BUG: Postgres migration script generates a few syntax errors
DT
Drizzle Team / help
3y ago