"""rename tables

Revision ID: fe9<PASSWORD>6d812f
Revises: <PASSWORD>
Create Date: 2019-04-11 15:33:25.591043

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

# revision identifiers, used by Alembic.
revision = '<PASSWORD>'
down_revision = '<PASSWORD>'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute('ALTER TABLE dpo.model_checksum RENAME TO execution_model')
    op.execute('ALTER TABLE dpo.data_pipeline_execution RENAME TO execution')
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.execute('ALTER TABLE dpo.execution RENAME TO data_pipeline_execution')
    op.execute('ALTER TABLE dpo.execution_model RENAME TO model_checksum')
    # ### end Alembic commands ###
