28 lines
592 B
Python
28 lines
592 B
Python
"""host remote_action JSON for background SSH/WinRM jobs
|
|
|
|
Revision ID: 022_host_remote_action
|
|
Revises: 021_agent_git_release
|
|
Create Date: 2026-06-21
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
revision = "022_host_remote_action"
|
|
down_revision = "021_agent_git_release"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"hosts",
|
|
sa.Column("remote_action", postgresql.JSONB(astext_type=sa.Text()), nullable=True),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("hosts", "remote_action")
|