superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject [incubator-superset] branch update-annotation-model updated: add degrade and new migration file
Date Wed, 29 Aug 2018 21:46:25 GMT
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 855a789  add degrade and new migration file
855a789 is described below

commit 855a7890b1b66b61e096becc93156f4715874211
Author: Hugh Miles <hmiles@lyft.com>
AuthorDate: Wed Aug 29 14:46:12 2018 -0700

    add degrade and new migration file
---
 ...d12_add_metadata_column_to_annotation_model_.py | 18 ------------------
 ...826_add_metadata_column_to_annotation_model_.py | 22 ++++++++++++++++++++++
 2 files changed, 22 insertions(+), 18 deletions(-)

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
deleted file mode 100644
index cb24afb..0000000
--- a/superset/migrations/versions/40a0a483dd12_add_metadata_column_to_annotation_model_.py
+++ /dev/null
@@ -1,18 +0,0 @@
-"""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))
diff --git a/superset/migrations/versions/55e910a74826_add_metadata_column_to_annotation_model_.py
b/superset/migrations/versions/55e910a74826_add_metadata_column_to_annotation_model_.py
new file mode 100644
index 0000000..dea5ec2
--- /dev/null
+++ b/superset/migrations/versions/55e910a74826_add_metadata_column_to_annotation_model_.py
@@ -0,0 +1,22 @@
+"""add_metadata_column_to_annotation_model.py
+
+Revision ID: 55e910a74826
+Revises: 40a0a483dd12
+Create Date: 2018-08-29 14:35:20.407743
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = '55e910a74826'
+down_revision = '40a0a483dd12'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+    op.add_column('annotation', sa.Column('json_metadata', sa.Text(), nullable=True))
+
+
+def downgrade():
+    op.drop_column('annotation', 'json_metadata')


Mime
View raw message