From 1c32eb54be54767b67e4a7a484065602cca56ca7 Mon Sep 17 00:00:00 2001 From: Michael Tan Date: Fri, 7 Jul 2023 14:10:22 +0700 Subject: [PATCH] (fix) syntax error at or near "WHERE" (#548) --- scripts/20230627151100_update_match_vectors.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/20230627151100_update_match_vectors.sql b/scripts/20230627151100_update_match_vectors.sql index 75f8881e48d9..62725bac8bbf 100644 --- a/scripts/20230627151100_update_match_vectors.sql +++ b/scripts/20230627151100_update_match_vectors.sql @@ -36,7 +36,7 @@ END; $$; INSERT INTO migrations (name) -SELECT '20230627151100_update_match_vectors'; +SELECT '20230627151100_update_match_vectors' WHERE NOT EXISTS ( SELECT 1 FROM migrations WHERE name = '20230627151100_update_match_vectors' );