Files
dify/knowledge-fs/infra/local/postgres-init/01-enable-pgvector.sql
Jyong 4ee43b8afc chore: migrate knowledge-fs source tree
Import the committed KnowledgeFS snapshot dc4072ee302317145612087ce7440851dc329fd0 under knowledge-fs/ without its Git history, local IDE settings, or build artifacts.
2026-07-20 04:54:20 -04:00

7 lines
411 B
SQL

-- Runs automatically on a fresh Postgres data volume (docker-entrypoint-initdb.d).
-- The checked-in migration 0001_initial_schema uses the `vector` type and an
-- hnsw index, but does not (and must not, to stay deterministic) create the
-- extension itself. Enable it here so `pnpm local:db:migrate` succeeds against a
-- brand-new local database without a manual step.
CREATE EXTENSION IF NOT EXISTS vector;