"""Rename entity_doing_as_business_n to entity_doing_business_as_n

Revision ID: 3f0b57c92b41
Revises: 17a4a70eb303
Create Date: 2023-01-11 11:17:12.407739

"""

# revision identifiers, used by Alembic.
revision = '3f0b57c92b41'
down_revision = '17a4a70eb303'
branch_labels = None
depends_on = None

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

def upgrade(engine_name):
    globals()["upgrade_%s" % engine_name]()


def downgrade(engine_name):
    globals()["downgrade_%s" % engine_name]()





def upgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute('ALTER TABLE award_procurement RENAME COLUMN entity_doing_as_business_n TO entity_doing_business_as_n')
    op.execute('ALTER TABLE published_award_procurement RENAME COLUMN entity_doing_as_business_n TO entity_doing_business_as_n')
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute('ALTER TABLE award_procurement RENAME COLUMN entity_doing_business_as_n TO entity_doing_as_business_n')
    op.execute('ALTER TABLE published_award_procurement RENAME COLUMN entity_doing_business_as_n TO entity_doing_as_business_n')
    # ### end Alembic commands ###

