Databases: update script

Databases: update script

by Dan Storch -
Number of replies: 1

Hi All,

Does anyone have any scripts they are willing to share?  Specifically, I'm looking for initial data setup scripts and nightly update scripts that will load students and courses from the Student Management System.  I was able to create one this spring as a test but we are moving to production this fall and it would be nice to have an example to work from so I know that I'm using the correct tables.

Thanks,

Dan

Average of ratings: -
In reply to Dan Storch

Re: Databases: update script

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If possible, you should avoid poking this data directly into the Moodle database.

Moodle provides a proper mechanism for doing this, which you should use instead. These are authentication and enrolment plugins. There is some documentation online at Administrator_documentation#User_Management You probably just need to set up the database enrolment and authentication plugins. Also, the relevant chapters of Moodle 1.9 Extension Development cover this quite well.