[Eva] Ева, прочитай .gitignore #38

Merged
Drobysh merged 6 commits from eva/chat-c3088d-backend into main 2026-10-13 16:36:34 +00:00
Showing only changes of commit f83fcc0e1c - Show all commits
+15
View File
@@ -229,6 +229,21 @@ async def init_db():
""")
logger.info("Added current_streak column to user_progress")
# ============ Авто-миграция: добавляем wave в user_progress ============
# 🔧 НОВОЕ (13.10.2026): wave — номер волны, к которой относится
# пройденный уровень. Нужен для подсчёта wave_points (сумма очков
# за 10 уровней волны) в модалке итогов волны.
col_exists = await conn.fetchval("""
SELECT 1 FROM information_schema.columns
WHERE table_name = 'user_progress' AND column_name = 'wave'
""")
if not col_exists:
await conn.execute("""
ALTER TABLE user_progress
ADD COLUMN wave INTEGER
""")
logger.info("Added wave column to user_progress")
# ============ sentences ============
await conn.execute("""
CREATE TABLE IF NOT EXISTS sentences (