Files

9 lines
343 B
Bash
Raw Permalink Normal View History

2026-06-09 06:41:28 +03:30
#!/bin/sh
# Runs once on first DB init. Enables pgvector at the database level. The platform EF migration
# also runs CREATE EXTENSION (idempotent); this guarantees it even if migrations are disabled.
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-'EOSQL'
CREATE EXTENSION IF NOT EXISTS vector;
EOSQL