20 lines
559 B
Python
20 lines
559 B
Python
"""记下页面上的本月学时,便于和系统统计对照。"""
|
|
|
|
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")
|