fix: create ADR-012 agent tables migration + fix telegram_models import
All checks were successful
CD Pipeline / deploy (push) Successful in 1m19s

Migration 017:
- CREATE TABLE IF NOT EXISTS agent_context, action_plans, action_outcomes,
  agent_strategy_weights (all four ADR-012 tables were missing from production DB)
- These tables are required by ElephantAlpha AutonomousEngine coordination loop

telegram_templates.py:
- Fix: from database.telegram_models → database.trend_models (TelegramUser
  has always lived in trend_models; telegram_models module does not exist)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ogt
2026-04-20 05:21:17 +08:00
parent 47cfd79513
commit d8d1f3dee8
2 changed files with 65 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ import logging
from typing import Any, Dict, Optional
from database.manager import get_session
from database.telegram_models import TelegramUser
from database.trend_models import TelegramUser
sys_log = logging.getLogger("TelegramTpl")