"""Adding format_change_threshold table

Revision ID: a1c4e0eb6c26
Revises: e78ee7ac53d0
Create Date: 2022-01-26 21:01:06.008453

"""

# revision identifiers, used by Alembic.
revision = 'a1c4e0eb6c26'
down_revision = 'e78ee7ac53d0'
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.create_table('format_change_date',
    sa.Column('created_at', sa.DateTime(), nullable=True),
    sa.Column('updated_at', sa.DateTime(), nullable=True),
    sa.Column('format_change_id', sa.Integer(), nullable=False),
    sa.Column('name', sa.Text(), nullable=True),
    sa.Column('description', sa.Text(), nullable=True),
    sa.Column('change_date', sa.DateTime(), nullable=True),
    sa.PrimaryKeyConstraint('format_change_id')
    )
    # ### end Alembic commands ###


def downgrade_data_broker():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('format_change_date')
    # ### end Alembic commands ###

