"""empty message

Revision ID: 236374050c44
Revises: be54b1485701
Create Date: 2019-10-23 20:23:32.446140

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "236374050c44"
down_revision = "3935f488fc9a"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_index(
        "campaign_order_id_is_null",
        "campaign",
        ["order_id"],
        unique=False,
        postgresql_using="btree",
        postgresql_where=sa.text("order_id IS NULL"),
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index("campaign_order_id_is_null", table_name="campaign")
    # ### end Alembic commands ###
