Mark hosts as hostgroups if applicable
This commit is contained in:
parent
6cb3a3785b
commit
a8c74381ca
@ -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 ###
|
||||
0
pillar_tool/routers/__init__.py
Normal file
0
pillar_tool/routers/__init__.py
Normal file
0
pillar_tool/routers/environment.py
Normal file
0
pillar_tool/routers/environment.py
Normal file
0
pillar_tool/routers/host.py
Normal file
0
pillar_tool/routers/host.py
Normal file
0
pillar_tool/routers/hostgroup.py
Normal file
0
pillar_tool/routers/hostgroup.py
Normal file
0
pillar_tool/routers/pillar.py
Normal file
0
pillar_tool/routers/pillar.py
Normal file
0
pillar_tool/routers/state.py
Normal file
0
pillar_tool/routers/state.py
Normal file
Loading…
x
Reference in New Issue
Block a user