def upgrade(migrate_engine):
    meta = MetaData()
    meta.bind = migrate_engine

    for table_prefix in ('', 'shadow_'):
        uuid_column = Column('uuid', String(36))
        aggregates = Table(table_prefix % '%saggregates', meta)
        if not hasattr(aggregates.c, 'uuid'):
            aggregates.create_column(uuid_column)
            if not table_prefix:
                index = Index('aggregate_uuid_idx', aggregates.c.uuid)
                index.create()
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/db/sqlalchemy/migrate_repo/versions/317_add_aggregate_uuid.py/upgrade/swapped operands of `%`