Commit Graph

910 Commits

Author SHA1 Message Date
Frederic Massart 2c6b80f400 MDL-48069 files: Switch the field order of index on mdl_files_reference
To improve performance of file_storage::search_references
2015-01-02 17:19:20 +08:00
Damyon Wiese d3e7b45d27 MDL-45538 Fix version bump. 2014-11-03 14:26:09 +08:00
Marina Glancy 7dcabab098 MDL-45538 files: restore missing records in draft areas 2014-10-30 10:46:59 +08:00
Neill Magill 68153616be MDL-46182 Inefficient query during Moodle upgrade on course_section table.
This part of the code is changing an index on the course_sections table to be unique, for this to happen in the upgrade script the index must be deleted and then the new version added.

Before this change the following was being done:

* The index is removed
* A query to delete records that were not unique on this index is performed
* The unique version of the index is added

After this change the following happens:

* A query to delete records that were not unique on this index is performed
* The index is removed
* The unique version of the index is added

When the original index is present the query uses it, which greatly improves the execution plan.

Before the change an upgrade on a site with around 387967 course_section records the upgrade would be stuck on the delete query for many hours, after the change the time can be measured in minutes.
2014-10-03 10:25:54 +01:00
Matteo Scaramuccia 93bd10c300 MDL-46985 Added 7-Zip and RAR MIME types. 2014-08-31 22:39:37 +02:00
Tim Hunt 3ce36f6ac1 MDL-45642 questions: add required index to question_attempts.
It is important to be able to tell which behaviours are in use, and
without this index, it requires a complete scan of this table, which can
be very big, to verify that a behaviour is unused.
2014-08-12 11:38:26 +01:00
Juan Leyva b88a31a654 MDL-45041 Web Service: add_user_device doesn't store entries for different users using the same push key 2014-07-25 10:40:08 +02:00
Petr Skoda a31fdfb145 MDL-46126 upgrade: fix bogus nulls in user.password before changing precission
Note: there is no need to deal with Oracle empty strings here
because only MySQL running in non-strict mode is affected.
2014-07-04 16:29:40 +12:00
Jason Fowler 40a4427420 MDL-45418 Files: Adding upgrade steps for publisher docs
Conflicts:
	lib/db/upgrade.php
	version.php
2014-06-10 19:31:04 +02:00
Eloy Lafuente (stronk7) 7e78f9c4a5 MDL-45503 upgrade: add v2.7.0 sep lines 2014-05-28 01:16:36 +02:00
Damyon Wiese d44071ee09 MDL-32543 upgrade: Increment the version bump 2014-05-19 13:02:10 +08:00
Daniel Neis Araujo d277c441da MDL-32543 Make sure the action and url fields of log table have correct sizes 2014-05-12 12:05:25 -03:00
Dan Poltawski 9d39960028 Merge branch 'MDL-43570' of https://github.com/KristerV/moodle
Conflicts:
	version.php
2014-05-01 14:43:22 +08:00
Krister Viirsaar ecdb94d3e0 MDL-43570 filetypes: Added new filetypes - ddoc, bdoc, cdoc 2014-04-30 13:04:34 +03:00
Frederic Massart c56f0f4a2c MDL-45298 theme: More permissive usage of retired themes settings 2014-04-28 16:27:33 +08:00
Daniel Neis Araujo 37032563b5 MDL-44658 Make userid,fieldid unique in user_info_data 2014-04-15 17:48:13 -03:00
Marina Glancy 039d204abd MDL-44070 availability: corrected SQL to be mysql-compatible 2014-04-09 14:41:12 +08:00
Damyon Wiese 515fe565f6 Merge branch 'MDL-44070-master' of https://github.com/sammarshallou/moodle
Conflicts:
	theme/bootstrapbase/less/moodle/forms.less
	theme/bootstrapbase/style/moodle.css
	version.php
2014-04-08 13:30:41 +08:00
Marina Glancy 593fc9d8d6 Merge branch 'MDL-44948' of git://github.com/timhunt/moodle 2014-04-08 11:13:43 +08:00
sam marshall 8e97006ad0 MDL-44070 Conditional availability enhancements (1): DB upgrade
Converts existing data to new structure in database as part of
upgrade, including a progress bar.

Deletes the database tables and fields that were used by the old
system and are no longer needed.
2014-04-07 18:27:43 +01:00
Sam Hemelryk 9bebe2bbbc MDL-44967 upgrade: fixed theme removal when themes have been removed already 2014-04-06 10:50:34 +12:00
Tim Hunt 3a528d4e76 MDL-44948 add tool_qeupgradehelper to the list of deleted plugins. 2014-04-04 19:21:23 +01:00
Ankit Agarwal 52dc1de746 MDL-42891 administration: Re-implement incorrect login notification, without using the logtable. 2014-04-01 17:18:15 +08:00
Petr Škoda 0a5aa65b53 MDL-44733 add support for disabling of scheduled tasks 2014-03-28 10:23:37 +08:00
Petr Škoda 9c093a7bf8 MDL-44316 move the tag context upgrade to the end and fix issues 2014-03-26 15:36:50 +08:00
Mark Nelson 0a341617e4 MDL-44316 upgrade: fix to ensure upgraded and new installations have matching 'tag_instance' tables 2014-03-25 22:17:30 -07:00
Sam Hemelryk bfb6e97eae Merge branch 'MDL-43784-master' of git://github.com/FMCorz/moodle
Conflicts:
	lib/classes/plugin_manager.php
	lib/db/upgrade.php
2014-03-26 11:33:47 +13:00
Mark Nelson 8dfc4d9c58 MDL-44316 core: updated the 'tag_instance' table to store the component, contextid and timecreated 2014-03-22 13:50:07 -07:00
Frederic Massart 7a2dabcbaa MDL-43784 theme: Removing all the old themes 2014-03-21 12:24:44 +08:00
Eloy Lafuente (stronk7) 2c36f83422 MDL-41760 move upgrade steps to match 04 version.
In previous (merge) commit, version was moved, on conflict
to 04 (coz 01) was already in use. This commit moves the 3
upgrade steps to 02, 03 and 04, matching that final version.
2014-03-19 02:15:17 +01:00
James Pratt 038014c415 MDL-41760 quiz_statistics : response analysis for first/last/all tries 2014-03-18 18:47:19 +07:00
Damyon Wiese 309ae8921f MDL-25499: Centralise management of all types of cron tasks
Centralise management of all types of cron tasks with registration, scheduling,
parallel task conflicts(blocking) and running once off tasks, all using an
administration screen.

This is a combination of several issues:

MDL-25502: Added "black magic" task allocator for cron
MDL-25503: Add step to cron to run all scheduled tasks
MDL-25504 cron: Refactor to use scheduler
MDL-25505: Add an admin interface to schedule tasks via cron.
MDL-25507: Add support for adhoc tasks.
2014-02-26 12:03:46 +08:00
Damyon Wiese d4e5757992 MDL-44118 question engine: Fix bad merge conflict resolution (again)
This time for sure (sorry).
2014-02-19 10:03:37 +08:00
Damyon Wiese 0d7e83c4e4 MDL-44118 question engine: Fix bad merge conflict resolution
Version numbers were out of order in upgrade file (my bad).
2014-02-19 09:35:57 +08:00
Damyon Wiese 6071a209fe Merge branch 'MDL-44118_2' of git://github.com/timhunt/moodle
Conflicts:
	version.php
2014-02-19 09:08:42 +08:00
Tim Hunt 30de48d285 MDL-44118 drop old quiz/question attempt data.
This data should all have been upgraded when moving to Moodle 2.1. It
was only kept as a back-up, and now, after 3 years have past, we can
clean it up.
2014-02-18 11:55:26 +00:00
Tim Hunt 4e8a07d28b MDL-44118 remove the qeupgradehelper tool
and associated code that was only used by it.
2014-02-18 11:55:21 +00:00
Damyon Wiese 0e84ecefcc Merge branch 'w07_MDL-42541_m27_portevent' of git://github.com/skodak/moodle
Conflicts:
	version.php
2014-02-18 12:00:45 +08:00
James Pratt 9d3d859c7f MDL-41759 quiz statistics : install.xml & upgrade.php difference 2014-02-17 19:25:10 +07:00
James Pratt 4922e79f3e MDL-41759 quiz statistics : break down responses for each variant 2014-02-14 15:23:04 +07:00
Petr Škoda fd0e019286 MDL-42541 stop using events for porfolion cron 2014-02-13 12:09:24 +08:00
Sam Hemelryk 5e45f31d83 Merge branch 'MDL-42882-master' of git://github.com/danpoltawski/moodle 2014-02-10 13:12:57 +13:00
Sam Hemelryk 8213574043 Merge branch 'MDL-41756-master' of https://github.com/jamiepratt/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2014-02-05 12:35:11 +13:00
Dan Poltawski 119cf17eec MDL-42882 upgrade: unit tests for root folders upgrade
Just verifying the original behaviour
2014-02-03 17:29:51 +08:00
Marina Glancy e20497827d MDL-41384 upgrade: make sure to re-read $SITE from DB when course table is altered 2014-01-31 16:56:30 +08:00
Sam Hemelryk 453d66b782 Merge branch 'MDL-25500-master-squashed' of git://github.com/damyon/moodle 2014-01-29 13:21:00 +13:00
David Curry c8ade8cbdc MDL-43797 lib/db/upgrade.php: Optimise sql for my_pages deletion
Change-Id: Idf300ab07afda3bcefea80e617549f40c710e529
2014-01-28 12:36:04 +13:00
David Curry a5ab83ac5e MDL-43797 lib/db/upgrade.php: Remove custom pages for deleted users
Change-Id: Ifef563431682a2a5524927f85ca9eba9cbe520ff
2014-01-28 11:55:17 +13:00
James Pratt 1239d28776 MDL-41756 (2) quiz statistics : break down question stats by variant 2014-01-27 18:00:04 +07:00
Damyon Wiese 9843e5ece5 MDL-25500 lock: New locking framework.
This locking system is designed to be used everywhere requiring
locking in Moodle. Each use of the locking system can be configured
to use a different type of locking (or the same type with a different
configuration).

The first supported lock types are memcache, memcached, file (flock),
db (specific handlers for pg, mysql and mariadb).
2014-01-27 10:04:18 +08:00