"""has_children_archived

Revision ID: 2a6232d642cc
Revises: 1974e21b074c
Create Date: 2024-09-19 09:07:50.297286

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '2a6232d642cc'
down_revision = '1974e21b074c'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_active_entity_filter', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_asset', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_chat_group', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_chat_topic', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_company', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_component', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_dashboard', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_deal', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_document', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_folder', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_import', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_invoice', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_kanban_board', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_lead', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_list', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_mail_handler', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_payment', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_pipeline', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_project', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_purchase_order', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_purchase_order_items', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_roadmap', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_s_desk_knowlage_category', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_scheme_wf', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_stock_incoming_order', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_stock_initial', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_stock_inventory', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_stock_move', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_stock_outcoming_order', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_task', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_task_filter', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_task_queue', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_task_report', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    op.add_column('cmf_u_work_post', sa.Column('has_children_archived', sa.Boolean(), nullable=False, server_default='false'))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('cmf_u_work_post', 'has_children_archived')
    op.drop_column('cmf_task_report', 'has_children_archived')
    op.drop_column('cmf_task_queue', 'has_children_archived')
    op.drop_column('cmf_task_filter', 'has_children_archived')
    op.drop_column('cmf_task', 'has_children_archived')
    op.drop_column('cmf_stock_outcoming_order', 'has_children_archived')
    op.drop_column('cmf_stock_move', 'has_children_archived')
    op.drop_column('cmf_stock_inventory', 'has_children_archived')
    op.drop_column('cmf_stock_initial', 'has_children_archived')
    op.drop_column('cmf_stock_incoming_order', 'has_children_archived')
    op.drop_column('cmf_scheme_wf', 'has_children_archived')
    op.drop_column('cmf_s_desk_knowlage_category', 'has_children_archived')
    op.drop_column('cmf_roadmap', 'has_children_archived')
    op.drop_column('cmf_purchase_order_items', 'has_children_archived')
    op.drop_column('cmf_purchase_order', 'has_children_archived')
    op.drop_column('cmf_project', 'has_children_archived')
    op.drop_column('cmf_pipeline', 'has_children_archived')
    op.drop_column('cmf_payment', 'has_children_archived')
    op.drop_column('cmf_mail_handler', 'has_children_archived')
    op.drop_column('cmf_list', 'has_children_archived')
    op.drop_column('cmf_lead', 'has_children_archived')
    op.drop_column('cmf_kanban_board', 'has_children_archived')
    op.drop_column('cmf_invoice', 'has_children_archived')
    op.drop_column('cmf_import', 'has_children_archived')
    op.drop_column('cmf_folder', 'has_children_archived')
    op.drop_column('cmf_document', 'has_children_archived')
    op.drop_column('cmf_deal', 'has_children_archived')
    op.drop_column('cmf_dashboard', 'has_children_archived')
    op.drop_column('cmf_component', 'has_children_archived')
    op.drop_column('cmf_company', 'has_children_archived')
    op.drop_column('cmf_chat_topic', 'has_children_archived')
    op.drop_column('cmf_chat_group', 'has_children_archived')
    op.drop_column('cmf_asset', 'has_children_archived')
    op.drop_column('cmf_active_entity_filter', 'has_children_archived')
    # ### end Alembic commands ###
