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