Skip to content

Commit

Permalink
add column to annotation model
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Aug 27, 2018
1 parent 52b99df commit 6c25f54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/models/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 6c25f54

Please sign in to comment.