"""Rename tas_id in sf_133 to account_num

Revision ID: 24e0fa72827a
Revises: a9bfc7a2bd16
Create Date: 2021-03-30 14:25:20.577236

"""

# revision identifiers, used by Alembic.
revision = '24e0fa72827a'
down_revision = 'a9bfc7a2bd16'
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 sf_133 RENAME COLUMN tas_id TO account_num")
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute("ALTER TABLE sf_133 RENAME COLUMN account_num TO tas_id")
    # ### end Alembic commands ###

