feat: 历史统计时对照显示官方本月学时
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user