招聘公告按原网页顺序展示导出
This commit is contained in:
@@ -592,6 +592,9 @@ async def lifespan(_app: FastAPI):
|
||||
columns = await conn.run_sync(lambda c: {col['name'] for col in inspect(c).get_columns('center_activity_meta')})
|
||||
if 'material_id' not in columns:
|
||||
await conn.execute(text('ALTER TABLE center_activity_meta ADD COLUMN material_id VARCHAR(32)'))
|
||||
recruit_columns = await conn.run_sync(lambda c: {col['name'] for col in inspect(c).get_columns('recruit_announcements')})
|
||||
if 'source_order' not in recruit_columns:
|
||||
await conn.execute(text('ALTER TABLE recruit_announcements ADD COLUMN source_order INTEGER NOT NULL DEFAULT 0'))
|
||||
await _migrate_legacy(conn)
|
||||
# 一楼历史活动统一作为公开记录,历史参加数据保留存档但不再参与统计。
|
||||
center_ids = select(center_activity_meta.c.activity_id)
|
||||
|
||||
Reference in New Issue
Block a user