From 4718e1113b3b4bda2d16190de4140b6bace854da Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 11 Apr 2023 23:35:52 -0700 Subject: [PATCH] convert to 2.0, that was easier than I thought.. --- .../alembic/versions/f2131e9ae4db_add_type_to_mdbase_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/medashare/alembic/versions/f2131e9ae4db_add_type_to_mdbase_table.py b/ui/medashare/alembic/versions/f2131e9ae4db_add_type_to_mdbase_table.py index 0f567b3..a16ea41 100644 --- a/ui/medashare/alembic/versions/f2131e9ae4db_add_type_to_mdbase_table.py +++ b/ui/medashare/alembic/versions/f2131e9ae4db_add_type_to_mdbase_table.py @@ -27,7 +27,7 @@ def upgrade() -> None: mdo = sa.schema.MetaData() mdotbl = sa.Table('metadata_objects', mdo, autoload_with=connection.engine) - stmt = sa.select([mdotbl.c.uuid, mdotbl.c.data]) + stmt = sa.select(mdotbl.c.uuid, mdotbl.c.data) newtypes = [ dict(olduuid=uuid, newtype=mdb.MDBase.decode(data).type) for uuid, data in connection.execute(stmt) ]