From d3e83b0fd572c9d6c1297543d415a332858e2626 Mon Sep 17 00:00:00 2001 From: Hugh Miles Date: Mon, 27 Aug 2018 14:05:29 -0700 Subject: [PATCH] update migration file --- ...9_add_json_column_to_annotation_model_py.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 superset/migrations/versions/0a9ffc0777c9_add_json_column_to_annotation_model_py.py 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 0000000000000..35d8336d0b3c2 --- /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))