Merge pull request #808 from AppFlowy-IO/fix/pg-migration
fix: migration for db without pgvector
This commit is contained in:
commit
cd3cd717bf
|
|
@ -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…
Reference in New Issue