5b3448b52b
Co-authored-by: Cursor <cursoragent@cursor.com>
15 lines
347 B
Python
15 lines
347 B
Python
"""关键位监控表结构迁移(四所共用)。"""
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
|
|
def ensure_key_monitor_schema(conn: Any) -> None:
|
|
for sql in (
|
|
"ALTER TABLE key_monitors ADD COLUMN last_mark_price REAL",
|
|
):
|
|
try:
|
|
conn.execute(sql)
|
|
except Exception:
|
|
pass
|