forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allowing to define a default format string per-metric (apache#750)
- Loading branch information
1 parent
8312f1c
commit f034f27
Showing
7 changed files
with
63 additions
and
6 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
24 changes: 24 additions & 0 deletions
24
caravel/migrations/versions/f162a1dea4c4_d3format_by_metric.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,24 @@ | ||
"""d3format_by_metric | ||
Revision ID: f162a1dea4c4 | ||
Revises: 960c69cb1f5b | ||
Create Date: 2016-07-06 22:04:28.685100 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'f162a1dea4c4' | ||
down_revision = '960c69cb1f5b' | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.add_column('metrics', sa.Column('d3format', sa.String(length=128), nullable=True)) | ||
op.add_column('sql_metrics', sa.Column('d3format', sa.String(length=128), nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('sql_metrics', 'd3format') | ||
op.drop_column('metrics', 'd3format') |
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