Databases: Updating Moodle database after patch

Databases: Updating Moodle database after patch

by Dennis Green -
Number of replies: 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

Average of ratings: -
In reply to Dennis Green

Re: Databases: Updating Moodle database after patch

by Tim Hunt -
Sary ny Core developers Sary ny Documentation writers Sary ny Particularly helpful Moodlers Sary ny Peer reviewers Sary ny Plugin developers
You need to go to the admin notifications screen to trigger a database update.
In reply to Tim Hunt

Re: Databases: Updating Moodle database after patch

by Dennis Green -
I've went there many times since installing the patch, nothing ever showed up. mixed
In reply to Dennis Green

Re: Databases: Updating Moodle database after patch

by Tim Hunt -
Sary ny Core developers Sary ny Documentation writers Sary ny Particularly helpful Moodlers Sary ny Peer reviewers Sary ny 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?
In reply to Tim Hunt

Re: Databases: Updating Moodle database after patch

by Dennis Green -

Patches don't have plugin files, do they?

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

In reply to Dennis Green

Re: Databases: Updating Moodle database after patch

by 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?