"""[GEOADVDEV-1970] new creative fields

Revision ID: 0f49d737992c
Revises: 48979a926943
Create Date: 2019-09-27 13:00:30.412755

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "0f49d737992c"
down_revision = "48979a926943"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "creative_banner", sa.Column("description", sa.UnicodeText(), nullable=False)
    )
    op.add_column(
        "creative_banner", sa.Column("title", sa.UnicodeText(), nullable=False)
    )
    op.add_column("creative_icon", sa.Column("position", sa.Integer(), nullable=False))
    op.add_column("creative_icon", sa.Column("title", sa.UnicodeText(), nullable=False))
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_column("creative_icon", "title")
    op.drop_column("creative_icon", "position")
    op.drop_column("creative_banner", "title")
    op.drop_column("creative_banner", "description")
    # ### end Alembic commands ###
