"""Set (published_)award_financial sequence to be a bigint

Revision ID: 62b8cb9f8067
Revises: 3f0b57c92b41
Create Date: 2023-04-24 15:29:34.321773

"""

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

from alembic import op
import sqlalchemy as sa


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.alter_column('award_financial', 'award_financial_id',
               existing_type=sa.INTEGER(),
               type_=sa.BigInteger())
    op.alter_column('published_award_financial', 'published_award_financial_id',
               existing_type=sa.INTEGER(),
               type_=sa.BigInteger())
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column('published_award_financial', 'published_award_financial_id',
               existing_type=sa.BigInteger(),
               type_=sa.INTEGER())
    op.alter_column('award_financial', 'award_financial_id',
               existing_type=sa.BigInteger(),
               type_=sa.INTEGER())
    # ### end Alembic commands ###

