"""order totals

Revision ID: 8e8ab836a5c0
Revises: fa389856020a
Create Date: 2021-04-29 07:29:07.720971

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '8e8ab836a5c0'
down_revision = 'fa389856020a'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('cmf_sales_order', sa.Column('total', sa.Numeric(precision=14, scale=2), nullable=True))
    op.add_column('cmf_sales_order', sa.Column('total_discount', sa.Numeric(precision=14, scale=2), nullable=True))
    op.add_column('cmf_sales_order', sa.Column('total_tax', sa.Numeric(precision=14, scale=2), nullable=True))
    op.add_column('cmf_sales_order', sa.Column('total_without_discount', sa.Numeric(precision=14, scale=2), nullable=True))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('cmf_sales_order', 'total_without_discount')
    op.drop_column('cmf_sales_order', 'total_tax')
    op.drop_column('cmf_sales_order', 'total_discount')
    op.drop_column('cmf_sales_order', 'total')
    # ### end Alembic commands ###
