"""cache fields

Revision ID: 8361c3596861
Revises: 05e112c9c717
Create Date: 2021-08-05 17:56:57.592847

"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql

# revision identifiers, used by Alembic.
revision = '8361c3596861'
down_revision = '05e112c9c717'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_document', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_invoice', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_lead', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_list', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_mail', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_payment', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_pipeline', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_project', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_purchase_order', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_purchase_order_items', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_sales_order', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_stock_move', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_stock_move_items', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_task', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    op.add_column('cmf_u_work_post', sa.Column('cache_fields', sa.TEXT(), nullable=True))
    # ### end Alembic commands ###


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

    # ### end Alembic commands ###
