mirror of
https://github.com/apache/superset.git
synced 2026-04-12 04:37:49 +00:00
* Support more filter operators * more filter operators [>, <, >=, <=, ==, !=, LIKE] * Fix need to escape/double `%` in LIKE clauses * spinner while loading values when changing column * datasource config elements to allow to applying predicates when fetching filter values * refactor * Removing doubling parens * rebasing * Merging migrations
24 lines
623 B
Python
24 lines
623 B
Python
"""add fetch values predicate
|
|
|
|
Revision ID: 732f1c06bcbf
|
|
Revises: d6db5a5cdb5d
|
|
Create Date: 2017-03-03 09:15:56.800930
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '732f1c06bcbf'
|
|
down_revision = 'd6db5a5cdb5d'
|
|
|
|
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')
|