Skip to content

Commit

Permalink
[migrations] Cleanup recent migrations (apache#5155)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored Jun 12, 2018
1 parent 72e463d commit 5b421a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def upgrade():
for tbl in session.query(Table).all():
if tbl.sql:
tbl.is_sqllab_view = True
session.merge(tbl)

session.commit()
db.session.close()

Expand Down
4 changes: 1 addition & 3 deletions superset/migrations/versions/c5756bec8b47_time_grain_sqla.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from alembic import op
import json
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, Text
from sqlalchemy import Column, Integer, Text

from superset import db

Expand All @@ -24,8 +24,6 @@ class Slice(Base):
__tablename__ = 'slices'

id = Column(Integer, primary_key=True)
datasource_type = Column(String(200))
slice_name = Column(String(250))
params = Column(Text)


Expand Down

0 comments on commit 5b421a1

Please sign in to comment.