You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2018/08/27 20:59:59 UTC

[incubator-superset] branch update-annotation-model created (now 6c25f54)

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a change to branch update-annotation-model
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git.


      at 6c25f54  add column to annotation model

This branch includes the following new commits:

     new 6c25f54  add column to annotation model

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-superset] 01/01: add column to annotation model

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch update-annotation-model
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 6c25f549384d7c2fc288451222e50493a7b14104
Author: Hugh Miles <hm...@lyft.com>
AuthorDate: Mon Aug 27 13:59:46 2018 -0700

    add column to annotation model
---
 superset/models/annotations.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset/models/annotations.py b/superset/models/annotations.py
index 82619fd..1543023 100644
--- a/superset/models/annotations.py
+++ b/superset/models/annotations.py
@@ -8,7 +8,7 @@ from __future__ import unicode_literals
 
 from flask_appbuilder import Model
 from sqlalchemy import (
-    Column, DateTime, ForeignKey, Index, Integer, String, Text,
+    Column, DateTime, ForeignKey, Index, Integer, String, Text, JSON
 )
 from sqlalchemy.orm import relationship
 
@@ -42,6 +42,7 @@ class Annotation(Model, AuditMixinNullable):
     layer = relationship(
         AnnotationLayer,
         backref='annotation')
+    annotation_metadata = Column(JSON)
 
     __table_args__ = (
         Index('ti_dag_state', layer_id, start_dttm, end_dttm),