"""empty message

Revision ID: ba0bdf748dfe
Revises: 2c9862261617
Create Date: 2022-05-22 03:13:12.209227

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'ba0bdf748dfe'
down_revision = '2c9862261617'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_active_entity_filter', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_chat_group', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_chat_topic', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_company', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_deal', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_document', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_folder', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_invoice', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_lead', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_list', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_mail', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_payment', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_pipeline', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_project', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_purchase_order', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_purchase_order_items', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_roadmap', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_stock_move', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_stock_move_items', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_task', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    op.add_column('cmf_u_work_post', sa.Column('tree_node_is_branch', sa.Boolean(), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('cmf_u_work_post', 'tree_node_is_branch')
    op.drop_column('cmf_task', 'tree_node_is_branch')
    op.drop_column('cmf_stock_move_items', 'tree_node_is_branch')
    op.drop_column('cmf_stock_move', 'tree_node_is_branch')
    op.drop_column('cmf_roadmap', 'tree_node_is_branch')
    op.drop_column('cmf_purchase_order_items', 'tree_node_is_branch')
    op.drop_column('cmf_purchase_order', 'tree_node_is_branch')
    op.drop_column('cmf_project', 'tree_node_is_branch')
    op.drop_column('cmf_pipeline', 'tree_node_is_branch')
    op.drop_column('cmf_payment', 'tree_node_is_branch')
    op.drop_column('cmf_mail', 'tree_node_is_branch')
    op.drop_column('cmf_list', 'tree_node_is_branch')
    op.drop_column('cmf_lead', 'tree_node_is_branch')
    op.drop_column('cmf_invoice', 'tree_node_is_branch')
    op.drop_column('cmf_folder', 'tree_node_is_branch')
    op.drop_column('cmf_document', 'tree_node_is_branch')
    op.drop_column('cmf_deal', 'tree_node_is_branch')
    op.drop_column('cmf_company', 'tree_node_is_branch')
    op.drop_column('cmf_chat_topic', 'tree_node_is_branch')
    op.drop_column('cmf_chat_group', 'tree_node_is_branch')
    op.drop_column('cmf_active_entity_filter', 'tree_node_is_branch')
    # ### end Alembic commands ###
