MDL-35851 Lesson module: fix page order id for import questions. Add upgrade script to fix lesson pages corrupted links.
MDL-35851 Lesson Mod: Update validation test through DB query instead of loop