"""add aliases

Revision ID: 336278686b01
Revises: 90f5c336f97b
Create Date: 2025-09-08 10:40:58.882359

"""

from alembic import op
import sqlalchemy as sa

from csirtmu.core.sqlalchemy.types import StringArray

# revision identifiers, used by Alembic.
revision = "336278686b01"
down_revision = "90f5c336f97b"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "perun_user", sa.Column("aliases", StringArray(), nullable=True), schema="public"
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("perun_user", "aliases", schema="public")
    # ### end Alembic commands ###
