-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68ffd4f
commit d9bd2d4
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
superset/migrations/versions/0b1f1ab473c0_add_extra_column_to_query.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""Add extra column to Query | ||
Revision ID: 0b1f1ab473c0 | ||
Revises: 55e910a74826 | ||
Create Date: 2018-11-05 08:42:56.181012 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '0b1f1ab473c0' | ||
down_revision = '55e910a74826' | ||
|
||
|
||
def upgrade(): | ||
op.add_column('query', sa.Column('extra_json', sa.Text(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('query', 'extra_json') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters