mirror of
https://github.com/apache/superset.git
synced 2026-06-09 09:39:25 +00:00
* Handling timeouts * Fixing timer on non-utc server * Allowing async with results * [bugfix] database is not selected * Making sure the session is up and running * Cleaning up query results and query objects * Picking a groupby and metric field on visualize flow * Showing local time in query history * Using pull-left pull-right instead of grid layout for table metdata Long column name were looking weird and icons were wrapping oddly * Linting * Eliminating east buttons under the sql editor * Sort database dropdown by name * Linting * Allowing non-SELECT statements to run * Adding a db config * Making sqla checkout check cross-db
29 lines
610 B
Python
29 lines
610 B
Python
"""allow_run_sync_async
|
|
|
|
Revision ID: 4500485bde7d
|
|
Revises: 41f6a59a61f2
|
|
Create Date: 2016-09-12 23:33:14.789632
|
|
|
|
"""
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '4500485bde7d'
|
|
down_revision = '41f6a59a61f2'
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
def upgrade():
|
|
op.add_column('dbs', sa.Column('allow_run_async', sa.Boolean(), nullable=True))
|
|
op.add_column('dbs', sa.Column('allow_run_sync', sa.Boolean(), nullable=True))
|
|
|
|
|
|
def downgrade():
|
|
try:
|
|
op.drop_column('dbs', 'allow_run_sync')
|
|
op.drop_column('dbs', 'allow_run_async')
|
|
except Exception:
|
|
pass
|
|
|