sim icon indicating copy to clipboard operation
sim copied to clipboard

[BUG] Option 4 - Manual Setup: Drizzle push fails without vector extension due to not being mentioned in docs

Open Shayan12456 opened this issue 1 year ago • 3 comments

Describe the bug Currently, there's no mention in the documentation that the vector extension must be enabled manually in PostgreSQL for Drizzle to work correctly when using vector types. Before Drizzle push running this should be mentioned CREATE EXTENSION IF NOT EXISTS vector;

To Reproduce Steps to reproduce the behavior:

  1. Set up the project and database following the documentation [Option 4: Manual Setup]
  2. Run bunx drizzle-kit push
  3. See error: PostgresError: type "vector" does not exist

Expected behavior The drizzle-kit push command should work without error, assuming the database is correctly set up. The docs should instruct users to run:

Screenshots

Image

Shayan12456 avatar Jul 10 '25 22:07 Shayan12456

@Shayan12456 any interim workaround for this?

yusrimathews avatar Jul 19 '25 10:07 yusrimathews

@yusrimathews the workaround is already in the bug that is posted CREATE EXTENSION IF NOT EXISTS vector; if you have vector enabled on postgres.

kprocks86 avatar Jul 20 '25 12:07 kprocks86

@Shayan12456 @yusrimathews @kprocks86 let me know if anyone is still having issues, but added instructions to the docs for option 4

waleedlatif1 avatar Jul 22 '25 19:07 waleedlatif1