"""cloud_servers add client_id

Revision ID: 019
Revises: 018
Create Date: 2026-05-18
"""
from alembic import op
import sqlalchemy as sa

revision = "019"
down_revision = "018_orders_and_instances"
branch_labels = None
depends_on = None


def upgrade():
    op.add_column(
        "cloud_servers",
        sa.Column("client_id", sa.Integer(), nullable=True, comment="魔方云客户ID，开通实例时传 client 字段"),
    )


def downgrade():
    op.drop_column("cloud_servers", "client_id")
