superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject [incubator-superset] 01/01: add column to annotation model
Date Mon, 27 Aug 2018 21:00:00 GMT
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 <hmiles@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),


Mime
View raw message