"""address migration

Revision ID: d38d649cb682
Revises: b8be6cd51cbd
Create Date: 2022-09-03 12:46:49.118477

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'd38d649cb682'
down_revision = 'b8be6cd51cbd'
branch_labels = None
depends_on = None

from make_post_sell.models.meta import UUIDType


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('mps_invoice', sa.Column('delivery_address', sa.UnicodeText(), nullable=True))
    op.add_column('mps_user', sa.Column('active_address_id', UUIDType, nullable=True))


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column('mps_user', 'active_address_id')
    op.drop_column('mps_invoice', 'delivery_address')
    # ### end Alembic commands ###
