<reponame>headout/dagen-airflow
"""Added template_id in dagen dag

Revision ID: db3d3cc79285
Revises: <PASSWORD>
Create Date: 2020-07-17 12:06:36.309223

"""
from alembic import op
import sqlalchemy as sa
import airflow
from sqlalchemy.dialects import mysql

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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('dagen_dag', sa.Column('template_id', sa.String(length=250), nullable=False))
    op.create_index(op.f('ix_dagen_dag_template_id'), 'dagen_dag', ['template_id'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_dagen_dag_template_id'), table_name='dagen_dag')
    op.drop_column('dagen_dag', 'template_id')
    # ### end Alembic commands ###

"""Added template_id in dagen dag

Revision ID: db3d3cc79285
Revises: <PASSWORD>
Create Date: 2020-07-17 12:06:36.309223

"""
from alembic import op
import sqlalchemy as sa
import airflow
from sqlalchemy.dialects import mysql

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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('dagen_dag', sa.Column('template_id', sa.String(length=250), nullable=False))
    op.create_index(op.f('ix_dagen_dag_template_id'), 'dagen_dag', ['template_id'], unique=False)
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_dagen_dag_template_id'), table_name='dagen_dag')
    op.drop_column('dagen_dag', 'template_id')
    # ### end Alembic commands ###
Added template_id in dagen dag  Revision ID: db3d3cc79285 Revises: <PASSWORD> Create Date: 2020-07-17 12:06:36.309223 # revision identifiers, used by Alembic. # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ### # ### commands auto generated by Alembic - please adjust! ### # ### end Alembic commands ###