mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
fix: migration for db without pgvector
This commit is contained in:
parent
32a473726d
commit
2f8925f01e
2 changed files with 6 additions and 1 deletions
|
@ -1 +0,0 @@
|
|||
CREATE INDEX af_collab_embeddings_oid_idx ON public.af_collab_embeddings (oid);
|
|
@ -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 $$;
|
Loading…
Add table
Reference in a new issue