Update annotation model to have JSON Metadata field (#5745)

* add column to annotation model

* update migration file

* change to Text

* remove old migration file

* add migration file

* remove JSON

* add new column to view

* add comma back

* linting

* lint some more

* missing comma

* rename columns

* add degrade and new migration file

* update version

* fixe changed name

* remove json from list columns
This commit is contained in:
Hugh A. Miles II
2018-08-31 10:06:27 -07:00
committed by GitHub
parent e12f4fb66d
commit 5e3f8332c4
3 changed files with 32 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ class Annotation(Model, AuditMixinNullable):
layer = relationship(
AnnotationLayer,
backref='annotation')
json_metadata = Column(Text)
__table_args__ = (
Index('ti_dag_state', layer_id, start_dttm, end_dttm),