"""Add an origin field on pr_to_issue

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2019-03-12 14:55:59.316861

"""

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '2<PASSWORD>'


def upgrade():
    ''' Add a column to record if the custom field should trigger a email
    notification.
    '''
    op.add_column(
        'pr_to_issue',
        sa.Column(
            'origin', sa.String(32), index=True
        )
    )


def downgrade():
    ''' Remove the key_notify column.
    '''
    op.drop_column('pr_to_issue', 'origin')

"""Add an origin field on pr_to_issue

Revision ID: <KEY>
Revises: <PASSWORD>
Create Date: 2019-03-12 14:55:59.316861

"""

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = '2<PASSWORD>'


def upgrade():
    ''' Add a column to record if the custom field should trigger a email
    notification.
    '''
    op.add_column(
        'pr_to_issue',
        sa.Column(
            'origin', sa.String(32), index=True
        )
    )


def downgrade():
    ''' Remove the key_notify column.
    '''
    op.drop_column('pr_to_issue', 'origin')

Add an origin field on pr_to_issue  Revision ID: <KEY> Revises: <PASSWORD> Create Date: 2019-03-12 14:55:59.316861 # revision identifiers, used by Alembic. Add a column to record if the custom field should trigger a email     notification. Remove the key_notify column.