feat(htykc): clazz completed_at migration; logrotate for htykc/htyproc/htyts

Portable run_rotate; moicen_start_huiwings_stack and ws_clazz updates; schema/models sync.

Made-with: Cursor
This commit is contained in:
2026-04-26 17:14:44 +08:00
parent dcb0d3c365
commit 0e53c9f66d
11 changed files with 118 additions and 12 deletions
@@ -0,0 +1 @@
ALTER TABLE clazz DROP COLUMN IF EXISTS completed_at;
@@ -0,0 +1,7 @@
-- 业务「已结课」:首次点名落库时间;清空出勤后回到 NULL。与 start_from/end_by 日历态互补。
ALTER TABLE clazz
ADD COLUMN completed_at TIMESTAMP NULL;
COMMENT ON COLUMN clazz.completed_at IS
'首次批量保存出勤且存在有效行时写入;出勤被清空则置 NULL。NULL 表示业务上未结课。';