Commit Graph

4 Commits

Author SHA1 Message Date
Jake Dallimore 2854c6fcf4 Merge branch 'MDL-73602_main' of https://github.com/marxjohnson/moodle 2026-01-16 15:20:06 +08:00
Mark Johnson 3d5e54f7b4 MDL-73602 questions: Remove qtype_random 2026-01-02 15:37:54 +00:00
Mark Johnson c25d5fd063 MDL-86798 questions: Track next version for question bank entries
This adds a new "nextversion" field to `question_bank_entries` to track
which version number the next version of the question should have. This
ensures that version numbers are not re-used if the latest version is
deleted.

To use this field, you must call
`\core_question\versions::get_next_version()`. This will initialise the
field to the correct value if it is currently null.

If you create a new version using this value, you must then call
`\core_question\versions::increment_next_version()` to increment the
counter.
2025-12-19 09:45:27 +00:00
Andrew Nicols f747c15cbf MDL-83424 core: Restructure Moodle codebase 2025-07-12 17:51:38 +08:00