"""users: drop email_verified and avatar_path, which nothing used Revision ID: 0037 Revises: 0036 Create Date: 2026-10-07 Both came with the foundation (0001) for features that were never built (#5178). Nothing ever set `email_verified`, so it was false for every account on the server while the offline desktop reported it as true; nothing read or wrote `avatar_path`. A field whose value means nothing is worse than no field: a later feature would trust it. If address verification is ever built, it adds its own column, with a migration that says what the existing accounts are. ## Downgrade Adds both columns back empty: every account unverified, no avatar. That is what they held before. """ import sqlalchemy as sa from alembic import op revision = "0037" down_revision = "0036" branch_labels = None depends_on = None def upgrade() -> None: op.drop_column("users", "email_verified") op.drop_column("users", "avatar_path") def downgrade() -> None: op.add_column("users", sa.Column("avatar_path", sa.Text(), nullable=True)) op.add_column( "users", sa.Column("email_verified", sa.Boolean(), nullable=False, server_default=sa.false()), )