"""Add jira_email to users table.

Allows each user to specify a separate email for Jira authentication,
independent of their Aegis account email.

Revision ID: b043
Revises: b042
Create Date: 2026-05-26
"""

from alembic import op
import sqlalchemy as sa

revision = "b043"
down_revision = "b042"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.add_column(
        "users",
        sa.Column("jira_email", sa.String(255), nullable=True),
    )


def downgrade() -> None:
    op.drop_column("users", "jira_email")
