betodealmeida closed pull request #6532: Increase size of column `name` in
table `ab_view_meu`
URL: https://github.com/apache/incubator-superset/pull/6532
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/superset/migrations/versions/cefabc8f7d38_increase_size_of_name_column_in_ab_view_.py
b/superset/migrations/versions/cefabc8f7d38_increase_size_of_name_column_in_ab_view_.py
new file mode 100644
index 0000000000..f808ca2b5d
--- /dev/null
+++
b/superset/migrations/versions/cefabc8f7d38_increase_size_of_name_column_in_ab_view_.py
@@ -0,0 +1,34 @@
+"""Increase size of name column in ab_view_menu
+
+Revision ID: cefabc8f7d38
+Revises: 6c7537a6004a
+Create Date: 2018-12-13 15:38:36.772750
+
+"""
+
+# revision identifiers, used by Alembic.
+revision = 'cefabc8f7d38'
+down_revision = '6c7537a6004a'
+
+from alembic import op
+import sqlalchemy as sa
+
+
+def upgrade():
+ with op.batch_alter_table('ab_view_menu') as batch_op:
+ batch_op.alter_column(
+ 'name',
+ existing_type=sa.String(length=100),
+ existing_nullable=False,
+ type_=sa.String(length=255),
+ nullable=False)
+
+
+def downgrade():
+ with op.batch_alter_table('ab_view_menu') as batch_op:
+ batch_op.alter_column(
+ 'name',
+ existing_type=sa.String(length=255),
+ existing_nullable=False,
+ type_=sa.String(length=100),
+ nullable=False)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]