Databases: update script

Databases: update script

per Dan Storch -
Nombre de respostes: 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

Mitjana de qualificacions: -
En resposta a Dan Storch

Re: Databases: update script

per Tim Hunt -
Imatge de Core developers Imatge de Documentation writers Imatge de Particularly helpful Moodlers Imatge de Peer reviewers Imatge de 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.