"""add fetch values predicate

Revision ID: 732f1c06bcbf
Revises: <PASSWORD>
Create Date: 2017-03-03 09:15:56.800930

"""

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

from alembic import op
import sqlalchemy as sa

def upgrade():
    op.add_column('datasources', sa.Column('fetch_values_from', sa.String(length=100), nullable=True))
    op.add_column('tables', sa.Column('fetch_values_predicate', sa.String(length=1000), nullable=True))


def downgrade():
    op.drop_column('tables', 'fetch_values_predicate')
    op.drop_column('datasources', 'fetch_values_from')

"""add fetch values predicate

Revision ID: 732f1c06bcbf
Revises: <PASSWORD>
Create Date: 2017-03-03 09:15:56.800930

"""

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

from alembic import op
import sqlalchemy as sa

def upgrade():
    op.add_column('datasources', sa.Column('fetch_values_from', sa.String(length=100), nullable=True))
    op.add_column('tables', sa.Column('fetch_values_predicate', sa.String(length=1000), nullable=True))


def downgrade():
    op.drop_column('tables', 'fetch_values_predicate')
    op.drop_column('datasources', 'fetch_values_from')

add fetch values predicate  Revision ID: 732f1c06bcbf Revises: <PASSWORD> Create Date: 2017-03-03 09:15:56.800930 # revision identifiers, used by Alembic.