Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Ensure plpython3u exists in live db when using it (#4555)

sarayourfriend1b0f3a704d40
diff --git a/catalog/dags/maintenance/decode_and_deduplicate_image_tags.py b/catalog/dags/maintenance/decode_and_deduplicate_image_tags.py
index c5e728283..926149b6a 100644
--- a/catalog/dags/maintenance/decode_and_deduplicate_image_tags.py
+++ b/catalog/dags/maintenance/decode_and_deduplicate_image_tags.py
@@ -50,6 +50,8 @@ def ensure_ov_unistr(
return postgres.run(
dedent(
"""
+ CREATE EXTENSION IF NOT EXISTS plpython3u;
+
CREATE OR REPLACE FUNCTION ov_unistr (string text)
RETURNS text
AS $$