Skip to content

Commit

Permalink
Fix the bug that breaks the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
x4base committed Apr 28, 2016
1 parent b9941d4 commit f4e8b06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions caravel/migrations/versions/6113409d871f_.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
revision = '6113409d871f'
down_revision = ('c3a8f8611885', 'b4a0abe21630')

from alembic import op
import sqlalchemy as sa


def upgrade():
pass
Expand Down
1 change: 0 additions & 1 deletion caravel/migrations/versions/b4a0abe21630_post_aggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql


def upgrade():
Expand Down
6 changes: 6 additions & 0 deletions caravel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,11 @@ def metrics_combo(self):
for m in self.metrics],
key=lambda x: x[1])

@property
# TODO: Sqlable shouldn't have this for post aggregators are only for Druid
def post_aggregators_combo(self):
return []

@property
def sql_url(self):
return self.database.sql_url + "?table_name=" + str(self.table_name)
Expand Down Expand Up @@ -1387,6 +1392,7 @@ class DruidPostAggregator(Model):
json = Column(Text)
description = Column(Text)


class FavStar(Model):
__tablename__ = 'favstar'

Expand Down

0 comments on commit f4e8b06

Please sign in to comment.