Skip to content

Commit feb9a53

Browse files
authored
fix postgres adapter migration extension creation which already exists at this point (#2188)
1 parent 9e8a15e commit feb9a53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/adapter-postgres/migrations/20240318103238_remote_schema.sql

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BEGIN
2121
FROM pg_extension
2222
WHERE extname = 'vector'
2323
) THEN
24-
CREATE EXTENSION vector
24+
CREATE EXTENSION vector IF NOT EXISTS
2525
SCHEMA extensions;
2626
END IF;
2727
END $$;
@@ -33,7 +33,7 @@ BEGIN
3333
FROM pg_extension
3434
WHERE extname = 'fuzzystrmatch'
3535
) THEN
36-
CREATE EXTENSION fuzzystrmatch
36+
CREATE EXTENSION fuzzystrmatch IF NOT EXISTS
3737
SCHEMA extensions;
3838
END IF;
3939
END $$;

0 commit comments

Comments
 (0)