Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix db migration 3dda56f1c4c6 #5415

Merged
merged 1 commit into from
Jul 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@
from __future__ import division

# revision identifiers, used by Alembic.
revision = '3dda56f1c4c6'
down_revision = 'bddc498dd179'

import datetime
import json

from alembic import op
import isodate
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, Text

from superset import db
from superset.utils import parse_human_timedelta
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this import was missing somehow


revision = '3dda56f1c4c6'
down_revision = 'bddc498dd179'


Base = declarative_base()
Expand Down Expand Up @@ -96,6 +98,8 @@ def format_seconds(value):


def compute_time_compare(granularity, periods):
if not granularity:
return None
# convert old db_engine_spec granularity to ISO duration
if granularity in db_engine_specs_map:
granularity = db_engine_specs_map[granularity]
Expand Down