This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new f58e7b2  Update 937d04c16b64_update_datasources.py (#7361)
f58e7b2 is described below

commit f58e7b204ecd1d92d4f4b016b29f74d7a20e02c1
Author: John Bodley <[email protected]>
AuthorDate: Tue Apr 23 18:34:41 2019 -0700

    Update 937d04c16b64_update_datasources.py (#7361)
---
 superset/migrations/versions/937d04c16b64_update_datasources.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/migrations/versions/937d04c16b64_update_datasources.py 
b/superset/migrations/versions/937d04c16b64_update_datasources.py
index 5fb34ab..a233a44 100644
--- a/superset/migrations/versions/937d04c16b64_update_datasources.py
+++ b/superset/migrations/versions/937d04c16b64_update_datasources.py
@@ -36,8 +36,8 @@ def upgrade():
     with op.batch_alter_table('datasources') as batch_op:
         batch_op.alter_column(
             'datasource_name',
+            existing_type=sa.String(255),
             nullable=False,
-            type_=sa.String(255),
         )
 
 
@@ -47,6 +47,6 @@ def downgrade():
     with op.batch_alter_table('datasources') as batch_op:
         batch_op.alter_column(
             'datasource_name',
+            existing_type=sa.String(255),
             nullable=True,
-            type_=sa.String(255),
         )

Reply via email to