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:28:38 UTC

[incubator-superset] 02/02: add 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

commit cf017aa1a5865890655e0b91c8bc776a59e3f545
Author: Hugh Miles <hm...@lyft.com>
AuthorDate: Mon Aug 27 14:28:20 2018 -0700

    add migration file
---
 ...483dd12_add_metadata_column_to_annotation_model_.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/superset/migrations/versions/40a0a483dd12_add_metadata_column_to_annotation_model_.py b/superset/migrations/versions/40a0a483dd12_add_metadata_column_to_annotation_model_.py
new file mode 100644
index 0000000..cb24afb
--- /dev/null
+++ b/superset/migrations/versions/40a0a483dd12_add_metadata_column_to_annotation_model_.py
@@ -0,0 +1,18 @@
+"""add_metadata_column_to_annotation_model.py
+
+Revision ID: 40a0a483dd12
+Revises: 1a1d627ebd8e
+Create Date: 2018-08-27 14:25:28.079119
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '40a0a483dd12'
+down_revision = '1a1d627ebd8e'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+    op.add_column('annotation', sa.Column('annotation_metadata', sa.Text(), nullable=True))