Mark hosts as hostgroups if applicable

This commit is contained in:
Linus Vogel 2026-02-08 22:21:06 +01:00
parent 6cb3a3785b
commit a8c74381ca
7 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
"""mark hosts as hostgroups
Revision ID: e33744090598
Revises: 0a912926be8b
Create Date: 2026-02-08 22:20:42.019833
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = 'e33744090598'
down_revision: Union[str, Sequence[str], None] = '0a912926be8b'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
"""Upgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('pillar_tool_host', sa.Column('is_hostgroup', sa.Boolean(), server_default='FALSE', nullable=False))
# ### end Alembic commands ###
def downgrade() -> None:
"""Downgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('pillar_tool_host', 'is_hostgroup')
# ### end Alembic commands ###

View File

View File

View File

View File

View File

View File