"""Add color to relationship types

Lets sites color relationship types (Controls, Contains, Stored At...) so the
asset relationship graph/badges are visually distinct, like statuses.

Revision ID: 7d10_relationshiptype_color
Revises: 7d09_subtype_colors
Create Date: 2026-07-09

"""
from alembic import op
import sqlalchemy as sa


revision = '7d10_relationshiptype_color'
down_revision = '7d09_subtype_colors'
branch_labels = None
depends_on = None


def upgrade():
    op.add_column('relationshiptypes', sa.Column('color', sa.String(length=20), nullable=True))


def downgrade():
    op.drop_column('relationshiptypes', 'color')
