"""Add origin column to mandates table.

Revision ID: d91a3c7f8b02
Revises: c4e812fb3a01
Create Date: 2026-04-24 10:00:00.000000
"""

from __future__ import annotations

import sqlalchemy as sa
from alembic import op

revision = "d91a3c7f8b02"
down_revision = "c4e812fb3a01"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.execute("ALTER TABLE mandates ADD COLUMN IF NOT EXISTS origin TEXT")


def downgrade() -> None:
    op.drop_column("mandates", "origin")
