3765d4d476
Add optional auto logoff of stuck sessions on RDG flap and direct RDP failure. Hide the RDS break button on old flap 302 when the user later reconnects or the workstation session is closed. Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
581 B
Python
27 lines
581 B
Python
"""auto RDP flap disconnect setting in ui_settings
|
|
|
|
Revision ID: 025_auto_rdp_flap_disconnect
|
|
Revises: 024_login_security
|
|
Create Date: 2026-07-02
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
revision = "025_auto_rdp_flap_disconnect"
|
|
down_revision = "024_login_security"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"ui_settings",
|
|
sa.Column("auto_rdp_flap_disconnect", sa.Boolean(), server_default="false", nullable=False),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("ui_settings", "auto_rdp_flap_disconnect")
|