16 lines
398 B
Python
16 lines
398 B
Python
"""统一真实模板渲染模式标识。"""
|
|
|
|
from sqlalchemy import text
|
|
|
|
from insurance.db.compat import db
|
|
|
|
|
|
def migrate():
|
|
"""将过渡期名称统一为对外约定的 clone-edit-v2。"""
|
|
db.session.execute(text(
|
|
"UPDATE insurance_ppt_templates "
|
|
"SET clone_renderer = 'clone-edit-v2' "
|
|
"WHERE clone_renderer = 'frame-clone-v2'"
|
|
))
|
|
db.session.commit()
|