Update UI and migrations, fix dockerfile

This commit is contained in:
Your Name
2026-07-18 21:29:05 +05:00
parent 580c75cbf6
commit 26ef145ccf
95 changed files with 9541 additions and 111 deletions
@@ -0,0 +1,21 @@
-- Keep the AI-writer divider deterministic.
-- Target separator length: 27 characters.
UPDATE app_settings
SET value_json = to_jsonb(
replace(
value_json #>> '{}',
'2. Черта с точным количеством символов ━━━━━━━━━━━━━━━━━━━━━━━━━━━',
'2. Черта-разделитель: отдельная строка ровно из 27 символов. Используй строго эту строку без изменений: ━━━━━━━━━━━━━━━━━━━━━━━━━━━'
)
),
updated_at = NOW()
WHERE key = 'ai_writer_prompt'
AND (value_json #>> '{}') LIKE '%Черта с точным количеством символов%';
UPDATE raw_posts
SET rewritten_text = regexp_replace(rewritten_text, E'(^━{3,}$)', '━━━━━━━━━━━━━━━━━━━━━━━━━━━', 'gm'),
final_text = regexp_replace(final_text, E'(^━{3,}$)', '━━━━━━━━━━━━━━━━━━━━━━━━━━━', 'gm'),
updated_at = NOW()
WHERE COALESCE(rewritten_text, '') LIKE '%━%'
OR COALESCE(final_text, '') LIKE '%━%';