From feb9a5383ab8cca85cf5a690c68685f00c5b4d56 Mon Sep 17 00:00:00 2001 From: koloxarto <106516707+web3gh@users.noreply.github.com> Date: Sun, 12 Jan 2025 10:10:56 +0100 Subject: [PATCH] fix postgres adapter migration extension creation which already exists at this point (#2188) --- .../migrations/20240318103238_remote_schema.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/adapter-postgres/migrations/20240318103238_remote_schema.sql b/packages/adapter-postgres/migrations/20240318103238_remote_schema.sql index 2867a12aea..30b0854ce3 100644 --- a/packages/adapter-postgres/migrations/20240318103238_remote_schema.sql +++ b/packages/adapter-postgres/migrations/20240318103238_remote_schema.sql @@ -21,7 +21,7 @@ BEGIN FROM pg_extension WHERE extname = 'vector' ) THEN - CREATE EXTENSION vector + CREATE EXTENSION vector IF NOT EXISTS SCHEMA extensions; END IF; END $$; @@ -33,7 +33,7 @@ BEGIN FROM pg_extension WHERE extname = 'fuzzystrmatch' ) THEN - CREATE EXTENSION fuzzystrmatch + CREATE EXTENSION fuzzystrmatch IF NOT EXISTS SCHEMA extensions; END IF; END $$;