Files
superset2/superset/migrations/versions/b46fa1b0b39e_add_params_to_tables.py
T
Maxime BeaucheminandGitHub 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

29 lines
539 B
Python

"""Add json_metadata to the tables table.
Revision ID: b46fa1b0b39e
Revises: ef8843b41dac
Create Date: 2016-10-05 11:30:31.748238
"""
# revision identifiers, used by Alembic.
revision = 'b46fa1b0b39e'
down_revision = 'ef8843b41dac'
from alembic import op
import logging
import sqlalchemy as sa
def upgrade():
op.add_column('tables',
sa.Column('params', sa.Text(), nullable=True))
def downgrade():
try:
op.drop_column('tables', 'params')
except Exception as e:
logging.warning(str(e))