- select→code, text→str, number→int 对齐bricks uitype规范 - 表单区域父容器改用VScrollPanel(height:500px)防止超出屏幕 - llmid改为uitype:hidden, 从params_kw.llmid获取值(从llm CRUD tool触发) - 移除llmid的select下拉和label
31 lines
878 B
Python
31 lines
878 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Execute migration via sage environment.
|
|
Run: cd /home/hermesai/repos/sage && ./py3/bin/python migrate_rel.py
|
|
"""
|
|
import asyncio
|
|
import sys
|
|
import os
|
|
|
|
# Add sage to path
|
|
sys.path.insert(0, '/home/hermesai/repos/sage/py3/lib/python3.10/site-packages')
|
|
sys.path.insert(0, '/home/hermesai/repos/sage')
|
|
|
|
from ahserver.serverenv import ServerEnv
|
|
from sqlor.dbpools import DBPools
|
|
from appPublic.jsonConfig import getConfig
|
|
|
|
async def migrate():
|
|
# Initialize env to get config
|
|
# Note: This script expects sage to be configured.
|
|
# We can't easily import sage's init here, but we can try to load config if available.
|
|
# Alternatively, just use raw sql.
|
|
pass
|
|
|
|
if __name__ == '__main__':
|
|
# Use a simpler approach: connect directly
|
|
import pymysql
|
|
# Assuming config is in sage's config dir
|
|
# We can read the config file
|
|
pass
|