Files
superset2/superset/migrations/versions/65903709c321_allow_dml.py
Maxime Beauchemin 15b67b2c6c [WiP] rename project from Caravel to Superset (#1576)
* Change in files

* Renamin files and folders

* cleaning up a single piece of lint

* Removing boat picture from docs

* add superset word mark

* Update rename note in docs

* Fixing images

* Pinning datatables

* Fixing issues with mapbox-gl

* Forgot to rename one file

* Linting

* v0.13.0

* adding pyyaml to dev-reqs
2016-11-09 23:08:22 -08:00

27 lines
489 B
Python

"""allow_dml
Revision ID: 65903709c321
Revises: 4500485bde7d
Create Date: 2016-09-15 08:48:27.284752
"""
# revision identifiers, used by Alembic.
revision = '65903709c321'
down_revision = '4500485bde7d'
from alembic import op
import sqlalchemy as sa
def upgrade():
op.add_column('dbs', sa.Column('allow_dml', sa.Boolean(), nullable=True))
def downgrade():
try:
op.drop_column('dbs', 'allow_dml')
except Exception as e:
logging.exception(e)
pass