From 7375b04c6f336b6b87b1934045b4f9261ceefa51 Mon Sep 17 00:00:00 2001 From: ogrechko Date: Wed, 26 Aug 2026 08:11:50 +0300 Subject: [PATCH] Scale AI-bot promo price proportionally to new base price MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Бот + ИИ-ассистент promotion kept its original ratio to the base price (45 000/55 000 = 81.8%) but applied to the new base of 160 000 ₽ (raised in the previous commit): 131 000 ₽ promo, 160 000 ₽ crossed-out. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_013otXCiTZsxdZ4SJKZ9wUky --- backend/migrations/013_reprice_ai_bot_promo.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 backend/migrations/013_reprice_ai_bot_promo.sql diff --git a/backend/migrations/013_reprice_ai_bot_promo.sql b/backend/migrations/013_reprice_ai_bot_promo.sql new file mode 100644 index 0000000..a841d75 --- /dev/null +++ b/backend/migrations/013_reprice_ai_bot_promo.sql @@ -0,0 +1,13 @@ +-- Акция "Бот + ИИ-ассистент" пересчитана пропорционально новой базовой цене +-- "Бот / ИИ-ассистент" (160 000 ₽, см. 012_reprice_ai_automation.sql). +-- Сохранено исходное соотношение акция/база: 45 000 / 55 000 = 81.8%. +-- 160 000 * 0.818 = 130 909 -> округлено до 131 000. +-- UPDATE безопасен к повторному запуску. +BEGIN; + +UPDATE promotions +SET price_text = '131 000 ₽', + old_price_text = 'от 160 000 ₽' +WHERE title = 'Бот + ИИ-ассистент'; + +COMMIT;