Update 937d04c16b64_update_datasources.py (#7361)

This commit is contained in:
John Bodley 2019-04-23 18:34:41 -07:00 committed by GitHub
parent 1388452169
commit f58e7b204e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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),
)