superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] 01/01: Update 937d04c16b64_update_datasources.py
Date Wed, 24 Apr 2019 01:08:12 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley pushed a commit to branch john-bodley--update-937d04c16b64
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git

commit 31242ac464c89c9ee438bc5b0e120765c5c10ba8
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Tue Apr 23 18:08:02 2019 -0700

    Update 937d04c16b64_update_datasources.py
---
 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),
         )


Mime
View raw message