Commit graph

134 commits

Author SHA1 Message Date
Sam Hemelryk
24dedb9680 MDL-39526 cache: purged when upgrade finished 2013-05-13 10:20:40 +12:00
Damyon Wiese
a5a6e93f01 MDL-39526 cache: add extra cache purge after upgrade_core
This prevents the upgraderunning lock from not being cleared when there are
no plugins to upgrade (reproducable bug with memcache as the application cache store)
2013-05-09 13:43:07 +08:00
Sam Hemelryk
3993a37c20 MDL-39526 cache: cleaned up disable_stores calls 2013-05-09 15:32:36 +12:00
Sam Hemelryk
fa167c4ac3 MDL-39526 cache: purge all stores after each plugin upgrade 2013-05-09 12:48:48 +12:00
Sam Hemelryk
b0dd08dd63 MDL-39430 cache: gets purged by force during upgrade and install 2013-05-09 10:42:21 +12:00
Petr Škoda
e2e35e71f9 MDL-39343 disable all caching in install and upgrades
This should resolve all problem on developer machines when switching branches or when restoring previous Moodle databases. It also prevents any potential problems during upgrades such as concurrent DB modification and resolves chicken egg problems in future caching upgrades.
2013-04-30 10:27:34 +02:00
Eloy Lafuente (stronk7)
c1782ec626 MDL-22153 backup: delete old, unused, 1.9 files 2013-04-07 17:20:41 +02:00
Petr Škoda
6b4b74904b MDL-38558 add preupgrade script support
This is intended things like undoing of local hacks, it is similar to older pre 2.0 upgrade hack.
2013-03-19 19:14:01 +01:00
Petr Škoda
bdbcb6d7fa MDL-38121 tell admins when plugin installed into wrong dir 2013-02-23 18:16:42 +01:00
Sam Hemelryk
e0d9b7c0d4 MDL-37683 cache: siteidentifier is now included in the keys 2013-02-18 08:32:03 +13:00
Tim Hunt
1fa845437c MDL-37943 upgrade: logic error in upgrade_plugins_blocks.
Derek Woolhead tracked down the problem and what needed to be fixed. I
just made the patch.

The problem was that if $plugin->cron had changed in version.php, then
the version number in the database could end up wrong after the upgrade,
and so the upgrade would immediately run a second time.
2013-02-08 12:40:49 +00:00
Eloy Lafuente (stronk7)
e801c74c54 Merge branch 'w51_MDL-37183_m25_excelcleanup' of git://github.com/skodak/moodle 2013-01-08 23:30:19 +01:00
Sam Hemelryk
f44e7d0a77 Merge branch 'MDL-36357' of git://github.com/danpoltawski/moodle
Conflicts:
	user/view.php
2013-01-09 09:34:22 +13:00
Petr Škoda
301ebbe512 MDL-37183 remove ancient unused excel library 2012-12-20 22:26:59 +01:00
Sam Hemelryk
94ef67cf5f MDL-36466 cache: tidy up after review 2012-11-26 08:12:00 +13:00
Dan Poltawski
0e35ba6ffc MDL-36357 cleanup - remove double semicolons 2012-11-15 09:51:26 +08:00
Sam Hemelryk
75af47ee1e MDL-36386 cache: upgrades now trigger definitions to be updated 2012-11-07 10:42:20 +13:00
Frederic Massart
d8271e3908 MDL-35116 upgrade: Rename backup files having used short name previously 2012-10-29 14:07:18 +08:00
Jerome Mouneyrac
12fc8acf5b MDL-35198 replace key_exists by array_key_exists 2012-09-26 15:20:18 +08:00
Sam Hemelryk
61e93a4c08 Merge branch 'MDL-27083-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2012-07-25 09:20:44 +12:00
Frederic Massart
67e3dd2c95 MDL-27083 Questions: Orphaned questions are adopted on upgrade 2012-07-23 11:37:09 +08:00
Petr Škoda
c8b3346cfd MDL-33180 delete the last traces of SimpleTest - ciao and thanks 2012-07-21 10:11:50 +02:00
Sam Hemelryk
e6f5528585 MDL-28949 upgrade: Split course completion upgrade into smaller chunks 2012-05-29 08:50:45 +12:00
Aaron Barnes
424a19b106 MDL-28949 course completion: Database structure fixes 2012-05-28 16:13:25 +12:00
Petr Skoda
b814d1b4b2 MDL-32607 prevent upgrade_set_timeout abort in CLI scripts
Credit goes to Michael Aherne, thanks.
2012-04-27 13:51:38 +02:00
Petr Skoda
5563f5fbbb MDL-31553 do not timeout CLI upgrade scripts
Credit goes to Michael Aherne.
2012-04-22 17:51:06 +02:00
Sam Hemelryk
68c7673088 Merge branch 'MDL-27547' of git://github.com/mouneyrac/moodle 2012-04-16 10:48:15 +12:00
Jerome Mouneyrac
bc81eadb19 MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted 2012-04-11 14:49:14 +08:00
Sam Hemelryk
0ccb4dcce0 Merge branch 'MDL-32349-master' of git://github.com/sammarshallou/moodle 2012-04-10 12:38:40 +12:00
Petr Skoda
0c5406ca93 MDL-32293 move the upgrade_set_timeout() function to lib/upgradelib.php
Credit goes to Eloy Lafuente.
2012-04-09 18:14:27 +02:00
sam marshall
ebb98bf53c MDL-32349 Installing can time out with large number of plugins 2012-04-05 18:29:00 +01:00
Eloy Lafuente (stronk7)
39b90b5152 MDL-30981 Upgrade API: Added related phpdocs 2012-04-02 00:40:13 +02:00
Sam Hemelryk
ef844d0a15 Merge branch 'w12_MDL-32094_m23_phpstrict' of git://github.com/skodak/moodle 2012-03-20 16:47:17 +13:00
Petr Skoda
f20edd5208 MDL-32094 fix various E_STRICT compatibility problems 2012-03-18 18:37:24 +01:00
Petr Skoda
37d729777c MDL-32050 import Minify 2.1.5 2012-03-16 20:03:03 +01:00
Petr Skoda
9008ec1654 MDL-30929 detect incorrect major version upgrades 2012-01-16 09:08:36 +01:00
Tim Hunt
ff05bb3166 MDL-26469 upgrade: cope with modules that do not set $module->cron. 2012-01-11 15:42:23 +00:00
Tim Hunt
3412cb4386 MDL-26469 upgrade: module cron setting not updated. 2012-01-11 14:04:09 +00:00
Jerome Mouneyrac
af03513f93 MDL-30268 add 'Can download files' field to service 2011-11-16 11:51:03 +08:00
Tim Hunt
da2fdc3f34 MDL-29474 update more of the admin code to use the admin renderer. 2011-10-20 11:13:35 +01:00
Petr Skoda
e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Petr Skoda
bd41bdd922 MDL-29029 move lang pack import to admin tools
Includes lang related language pack cleanup.

AMOS BEGIN
 MOV [langpacks,core_admin],[pluginname,tool_langimport]
 MOV [install,core_admin],[install,tool_langimport]
 MOV [installedlangs,core_admin],[installedlangs,tool_langimport]
 MOV [langimport,core_admin],[langimport,tool_langimport]
 MOV [langimportdisabled,core_admin],[langimportdisabled,tool_langimport]
 MOV [langpackinstalled,core_admin],[langpackinstalled,tool_langimport]
 MOV [langpackremoved,core_admin],[langpackremoved,tool_langimport]
 MOV [langpackupdateskipped,core_admin],[langpackupdateskipped,tool_langimport]
 MOV [langpackuptodate,core_admin],[langpackuptodate,tool_langimport]
 MOV [langupdatecomplete,core_admin],[langupdatecomplete,tool_langimport]
 MOV [missinglangparent,core_admin],[missinglangparent,tool_langimport]
 MOV [nolangupdateneeded,core_admin],[nolangupdateneeded,tool_langimport]
 MOV [remotelangnotavailable,core_admin],[remotelangnotavailable,tool_langimport]
 MOV [uninstall,core_admin],[uninstall,tool_langimport]
 MOV [uninstallconfirm,core_admin],[uninstallconfirm,tool_langimport]
 MOV [updatelangs,core_admin],[updatelangs,tool_langimport]
AMOS END
2011-09-17 20:58:26 +02:00
Tom Lanyon
7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02:00
Rajesh Taneja
bb44ef990f MDL-28580 Administration: Added sanity check to grab wrong usage of upgrade_main_savepoint 2011-08-19 07:37:48 +00:00
Jerome Mouneyrac
02ae44cf4e MDL-27783 enabled status of a built-in service should never been updated on upgrade. It is only used during the installation. If a dev really needs to change the status, he can do it in lib/db/upgrade.php 2011-06-09 16:50:14 +08:00
Sam Hemelryk
96e0194c05 Merged branch 'MLD-27551' of git://github.com/mouneyrac/moodle.git with changes 2011-06-08 17:34:17 +08:00
Jerome Mouneyrac
c1b658832d MDL-27551 add enable mobile feature (enable web services + mobile service - add mobile builtin service - add unique shortname for service) 2011-06-08 15:10:26 +08:00
Ruslan Kabalin
afed8d0f17 MDL-27652 messages: introduce message_update_processors
This function populates default message preferences for all existing providers
when the new message processor is added.

The change also includes update of message_set_default_message_preference to
make possible using it for particular message processor update.

install_populate_default_messaging_prefs() is no longer needed and depricted.

Signed-off-by: Ruslan Kabalin <ruslan.kabalin@luns.net.uk>
2011-06-01 12:02:37 +01:00
David Mudrak
52deafc143 MDL-27317 Fixed incorrect variable names in the language pack update
This was introduced by copying & pasting the code during 74a4c9.
2011-05-06 23:38:02 +02:00