@gmazzap @pfefferle But if the flag is stored in a DB option then never rely on the flag alone because people do "crazy" stuff like downgrade plugin versions . So use it to trigger the migration but then re-check the pre-conditions again. Also make sure that if you run multiple upgrades at once when people do huge version jumps you do them in the right order. I've seen plugins wrecking themselves badly by not paying attention to this. And I've probably missed some more potential issues 🙃