I'm trying to add a per-user field to courses. It needs to be available in all courses that will ever be created.
As I'm totally new to moodle, I don't really know where to start. What I thought of so far is adding a field to completions as those are already on a per-user basis which would be a good start.
- Is this a valid approach at all or is it better to create a new table?
- Is it possible to simply add a field to a core table from within a plugin? E. g. by defining it in install.xml or generate it in upgrade.php? Would that interfere with backup and restore procedures so I had to handle those cases as well?
Can anyone point me in the right direction?
Thank you in advance,
Anne