refactor(news): remove retired research workflow
Development CI / check-and-build (push) Successful in 2m53s
GitHub Git mirror / mirror (push) Successful in 7s
Development CI / deploy-development (push) Successful in 2m31s

This commit is contained in:
eezd committed 2026-11-05 18:38:25 +08:00
1 parent f3894c3728
commit d79a10c2e6
69 files changed
+460 -6713

No files matched your search

+3 -2
View File
@@ -24,8 +24,9 @@ target_metadata = Base.metadata
def include_object(obj, name, type_, reflected, compare_to):
# klines 的分区表由迁移手工创建,不在模型里;不过滤的话 autogenerate 会生成 drop_table
return not (type_ == "table" and reflected and compare_to is None and name.startswith("klines_"))
# 分区表与退役新闻表不在运行模型中;自动生成迁移不能删除保留的历史表。
archived = name.startswith(('klines_', 'news_ai_', 'risk_')) or name == 'news_package_evidence'
return not (type_ == "table" and reflected and compare_to is None and archived)
# other values from the config, defined by the needs of env.py,
# can be acquired: