"""记下任务开启时间,供管理端用户列表显示。""" from alembic import op import sqlalchemy as sa revision = "0013_study_opened_at" down_revision = "0012_account_profile" branch_labels = None depends_on = None def upgrade() -> None: with op.batch_alter_table("accounts") as batch: batch.add_column(sa.Column("study_opened_at", sa.DateTime(timezone=True), nullable=True)) def downgrade() -> None: with op.batch_alter_table("accounts") as batch: batch.drop_column("study_opened_at")