fix: 补上清单里还没对上的登录拒绝、会话回退和代理清理

This commit is contained in:
2026-11-16 16:46:37 +08:00
parent a1e2b6e65c
commit 3cff9dc37a
19 changed files with 223 additions and 65 deletions
@@ -0,0 +1,19 @@
"""记下代理最近一次被采集到的时间,便于清掉长期失效的节点。"""
from alembic import op
import sqlalchemy as sa
revision = "0008_proxy_last_seen"
down_revision = "0007_study_start_day"
branch_labels = None
depends_on = None
def upgrade() -> None:
with op.batch_alter_table("proxy_nodes") as batch:
batch.add_column(sa.Column("last_seen_at", sa.DateTime(timezone=True), nullable=True))
def downgrade() -> None:
with op.batch_alter_table("proxy_nodes") as batch:
batch.drop_column("last_seen_at")