Files
superset2/superset/migrations/versions/e68c4473c581_allow_multi_schema_metadata_fetch.py
Maxime Beauchemin d522292b01 [sql lab] option to disable cross schema search (#4551)
* [sql lab] disable cross schema search

This is killing our metastore as people type it emits large
all-table-dump as they hit the keystroke. It never returns as it times
out and hammers the poor metastore.

Also some improvements around the disabling the table select on the left
panel and having the table name not be sticky.

* typo
2018-03-09 14:54:39 -08:00

31 lines
575 B
Python

"""allow_multi_schema_metadata_fetch
Revision ID: e68c4473c581
Revises: e866bd2d4976
Create Date: 2018-03-06 12:24:30.896293
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e68c4473c581'
down_revision = 'e866bd2d4976'
def upgrade():
op.add_column(
'dbs',
sa.Column(
'allow_multi_schema_metadata_fetch',
sa.Boolean(),
nullable=True,
default=True,
),
)
def downgrade():
op.drop_column('dbs', 'allow_multi_schema_metadata_fetch')