"""remove unused issuer fields

Revision ID: 20260813_0008
Revises: 20260813_0007
Create Date: 2026-08-13
"""

from alembic import op
import sqlalchemy as sa


revision = "20260813_0008"
down_revision = "20260813_0007"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.drop_column("certificates", "issuer_name")
    op.drop_column("project_courses", "default_issuer_name")


def downgrade() -> None:
    op.add_column(
        "project_courses",
        sa.Column("default_issuer_name", sa.String(length=128), nullable=False, server_default=""),
    )
    op.add_column(
        "certificates",
        sa.Column("issuer_name", sa.String(length=128), nullable=False, server_default=""),
    )
