© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
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 TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Lock issues / deadlock during postgres migration
Drizzle TeamDTDrizzle Team / help
3y ago
postgres-js migration configuration
Drizzle TeamDTDrizzle Team / help
3y ago
Drizzle postgres migration gives lots of type errors
Drizzle TeamDTDrizzle Team / help
2y ago
BUG: Postgres migration script generates a few syntax errors
Drizzle TeamDTDrizzle Team / help
3y ago