feat: 历史统计时对照显示官方本月学时

This commit is contained in:
Nixevol
2026-11-19 02:54:32 +08:00
parent ba787a513b
commit a0ceb51348
12 changed files with 156 additions and 13 deletions
@@ -0,0 +1,19 @@
"""记下页面上的本月学时,便于和系统统计对照。"""
from alembic import op
import sqlalchemy as sa
revision = "0014_official_month_hours"
down_revision = "0013_study_opened_at"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("accounts") as batch:
batch.add_column(sa.Column("official_month_hours", sa.String(length=32), server_default="", nullable=False))
def downgrade() -> None:
with op.batch_alter_table("accounts") as batch:
batch.drop_column("official_month_hours")