Databases: Updating Moodle database after patch

Databases: Updating Moodle database after patch

Dennis Green -
回帖数: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

回复Dennis Green

Re: Databases: Updating Moodle database after patch

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
You need to go to the admin notifications screen to trigger a database update.
回复Tim Hunt

Re: Databases: Updating Moodle database after patch

Dennis Green -
I've went there many times since installing the patch, nothing ever showed up. mixed
回复Dennis Green

Re: Databases: Updating Moodle database after patch

Tim Hunt -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 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?
回复Tim Hunt

Re: Databases: Updating Moodle database after patch

Dennis Green -

Patches don't have plugin files, do they?

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

回复Dennis Green

Re: Databases: Updating Moodle database after patch

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?