-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding warning text to metrics * Adding javascript tests * Fixing downgrade script for warning_text * Adding merge migration
- Loading branch information
1 parent
9af34ba
commit 255ea69
Showing
7 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
26 changes: 26 additions & 0 deletions
26
superset/migrations/versions/19a814813610_adding_metric_warning_text.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,26 @@ | ||
"""Adding metric warning_text | ||
Revision ID: 19a814813610 | ||
Revises: ca69c70ec99b | ||
Create Date: 2017-09-15 15:09:40.495345 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '19a814813610' | ||
down_revision = 'ca69c70ec99b' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('metrics', sa.Column('warning_text', sa.Text(), nullable=True)) | ||
op.add_column('sql_metrics', sa.Column('warning_text', sa.Text(), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
with op.batch_alter_table('sql_metrics') as batch_op_sql_metrics: | ||
batch_op_sql_metrics.drop_column('warning_text') | ||
with op.batch_alter_table('metrics') as batch_op_metrics: | ||
batch_op_metrics.drop_column('warning_text') |
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,22 @@ | ||
"""empty message | ||
Revision ID: 472d2f73dfd4 | ||
Revises: ('19a814813610', 'a9c47e2c1547') | ||
Create Date: 2017-09-21 18:37:30.844196 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '472d2f73dfd4' | ||
down_revision = ('19a814813610', 'a9c47e2c1547') | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
pass | ||
|
||
|
||
def downgrade(): | ||
pass |