refactor(news): remove retired research workflow
This commit is contained in:
1 parent
f3894c3728
commit
d79a10c2e6
69 files changed
+460
-6713
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user