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 21:10:11 UTC

[incubator-superset] branch update-annotation-model updated: update migration file

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


The following commit(s) were added to refs/heads/update-annotation-model by this push:
     new d3e83b0  update migration file
d3e83b0 is described below

commit d3e83b0fd572c9d6c1297543d415a332858e2626
Author: Hugh Miles <hm...@lyft.com>
AuthorDate: Mon Aug 27 14:05:29 2018 -0700

    update migration file
---
 ...ffc0777c9_add_json_column_to_annotation_model_py.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/superset/migrations/versions/0a9ffc0777c9_add_json_column_to_annotation_model_py.py b/superset/migrations/versions/0a9ffc0777c9_add_json_column_to_annotation_model_py.py
new file mode 100644
index 0000000..35d8336
--- /dev/null
+++ b/superset/migrations/versions/0a9ffc0777c9_add_json_column_to_annotation_model_py.py
@@ -0,0 +1,18 @@
+"""add_json_column_to_annotation_model.py
+
+Revision ID: 0a9ffc0777c9
+Revises: 1a1d627ebd8e
+Create Date: 2018-08-27 14:02:00.101734
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '0a9ffc0777c9'
+down_revision = '1a1d627ebd8e'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+    op.add_column('annotation', sa.Column('annotation_metadata', sa.JSON(), nullable=True))