Browse Source

convert to 2.0, that was easier than I thought..

main
John-Mark Gurney 1 year ago
parent
commit
4718e1113b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ui/medashare/alembic/versions/f2131e9ae4db_add_type_to_mdbase_table.py

+ 1
- 1
ui/medashare/alembic/versions/f2131e9ae4db_add_type_to_mdbase_table.py View File

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



Loading…
Cancel
Save