Databases: Updating Moodle database after patch

Databases: Updating Moodle database after patch

por Dennis Green -
Número de respuestas: 5

Hi there,

Does moodle have some sort of process that would update (create new tables, etc.) after a patch has been applied?

I have applied a patch from here:
http://tracker.moodle.org/browse/MDL-1071

Ran into a few problems so I applied it manually. It seems to work except I cannot turn the feature on - the option is there but it does not save in the database. I looked in the database and there is no column for this new feature. Will I need to create the column and any other field manually? If so, could someone please assist me in doing this, I'm not experienced in mySQL enough to know how to. wide eyes

Promedio de valuaciones (ratings): -
En respuesta a Dennis Green

Re: Databases: Updating Moodle database after patch

por Tim Hunt -
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
You need to go to the admin notifications screen to trigger a database update.
En respuesta a Tim Hunt

Re: Databases: Updating Moodle database after patch

por Dennis Green -
I've went there many times since installing the patch, nothing ever showed up. mixed
En respuesta a Dennis Green

Re: Databases: Updating Moodle database after patch

por Tim Hunt -
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
Oh. In that case, maybe Development:Installing_and_upgrading_plugin_database_tables, which explains how the upgrade system should work, can help you diagnose the problem?
En respuesta a Tim Hunt

Re: Databases: Updating Moodle database after patch

por Dennis Green -

Patches don't have plugin files, do they?

Sure wish there would be a guide of some sort on Patches.

En respuesta a Dennis Green

Re: Databases: Updating Moodle database after patch

por Dennis Green -

Just to confirm, that patch does not have any install files. Only line changes to Moodle files and an image for the new feature.

What could I do to update the database?