I’m sorry but there is no such query for this specific migration. It’s about populating the table with UUID created by SonarQube, you can’t do that from a native SQL query.
That’s an interesting point to dig into. What’s the underlying real storage? Could you try an experiment with another storage?