mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
* 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
29 lines
539 B
Python
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))
|
|
|