dana-medical-site/internal/storage/migrations/0016_checkup_kra.sql
2026-10-14 13:33:13 +00:00

13 lines
844 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- В текстах двух чек-апов со старого сайта вместо кириллической «к» стоит латинская «ĸ» (U+0138):
-- «Профилаĸтиĸа раĸа шейĸи матĸи». Выглядит так же, но поиск по «профилактика» её не находит.
-- Адрес (slug) не трогаем.
UPDATE checkups
SET name = replace(name, 'ĸ', 'к'),
lead = replace(lead, 'ĸ', 'к'),
blocks = replace(blocks::text, 'ĸ', 'к')::jsonb,
seo_title = replace(seo_title, 'ĸ', 'к'),
seo_description = replace(seo_description, 'ĸ', 'к'),
seo_h1 = replace(seo_h1, 'ĸ', 'к'),
updated_at = now()
WHERE name || lead || blocks::text || seo_title || seo_description || seo_h1 LIKE '%ĸ%';