fix: migration for db without pgvector

This commit is contained in:
Zack Fu Zi Xiang 2024-09-10 10:51:56 +08:00
parent 32a473726d
commit 2f8925f01e
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -1 +0,0 @@
CREATE INDEX af_collab_embeddings_oid_idx ON public.af_collab_embeddings (oid);

View file

@ -0,0 +1,6 @@
DO $$
BEGIN
CREATE INDEX IF NOT EXISTS af_collab_embeddings_oid_idx ON public.af_collab_embeddings (oid);
EXCEPTION WHEN others THEN
RAISE NOTICE 'could not create index on af_collab_embeddings(oid), ignoring this migration';
END $$;