"""add unique constraint to script_templates.slug

Revision ID: 070
Revises: 069
Create Date: 2026-04-01
"""
from alembic import op


revision = "070"
down_revision = "069"
branch_labels = None
depends_on = None


def upgrade() -> None:
    op.create_unique_constraint(
        "uq_script_templates_slug",
        "script_templates",
        ["slug"],
    )


def downgrade() -> None:
    op.drop_constraint(
        "uq_script_templates_slug",
        "script_templates",
        type_="unique",
    )
