superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] branch master updated: [migrations] Cleanup recent migrations (#5155)
Date Tue, 12 Jun 2018 19:10:49 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 52a933f  [migrations] Cleanup recent migrations (#5155)
52a933f is described below

commit 52a933ffb8bb1df672ddfb104daf288a89342fb1
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Tue Jun 12 12:10:41 2018 -0700

    [migrations] Cleanup recent migrations (#5155)
---
 superset/migrations/versions/130915240929_is_sqllab_viz_flow.py | 2 +-
 superset/migrations/versions/c5756bec8b47_time_grain_sqla.py    | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/superset/migrations/versions/130915240929_is_sqllab_viz_flow.py b/superset/migrations/versions/130915240929_is_sqllab_viz_flow.py
index be17c50..4d8554c 100644
--- a/superset/migrations/versions/130915240929_is_sqllab_viz_flow.py
+++ b/superset/migrations/versions/130915240929_is_sqllab_viz_flow.py
@@ -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()
 
diff --git a/superset/migrations/versions/c5756bec8b47_time_grain_sqla.py b/superset/migrations/versions/c5756bec8b47_time_grain_sqla.py
index 06ce632..3d8754f 100644
--- a/superset/migrations/versions/c5756bec8b47_time_grain_sqla.py
+++ b/superset/migrations/versions/c5756bec8b47_time_grain_sqla.py
@@ -13,7 +13,7 @@ down_revision = 'e502db2af7be'
 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
 
@@ -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)
 
 

-- 
To stop receiving notification emails like this one, please contact
johnbodley@apache.org.

Mime
View raw message