Files
superset2/superset/migrations/versions/f18570e03440_add_query_result_key_index.py
Bogdan c5c730224e Check datasource level perms for downloading csv and fetching results (#2032)
* Check datasource level perms for downloading csv and fetching results

* Add index on the query table on the result key column
2017-01-25 16:02:26 -08:00

21 lines
461 B
Python

"""Add index on the result key to the query table.
Revision ID: f18570e03440
Revises: 1296d28ec131
Create Date: 2017-01-24 12:40:42.494787
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = 'f18570e03440'
down_revision = '1296d28ec131'
def upgrade():
op.create_index(op.f('ix_query_results_key'), 'query', ['results_key'], unique=False)
def downgrade():
op.drop_index(op.f('ix_query_results_key'), table_name='query')