drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Allow for creating extensions using db:push

Open
#2,231 2 comments 11 reactions 0 assignees View on GitHub
db/postgres drizzle/kit enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Describe what you want

I'm using drizzle-kit to do my pg migrations but need to add the `vector` extension. To do this I need to run `CREATE EXTENSION IF NOT EXISTS vector` before creating my table with `vector` column types.

I can't see a way to run this CREATE EXTENSION migration before the db:push command is run using my schema.ts file. Is this possible or does it require a new feature for drizzle-kit?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.