Commit graph

689 commits

Author SHA1 Message Date
David Mudrák
c5944a1d57 MDL-64553 message: Add index for the notifications.useridfrom field
The useridfrom would normally be a foreign key to the users table. But
it can also contain some extra negative values with special semantics
(-10 or -20 for no-reply or support user). Therefore we can't make it a
foreign key and the index must be created explicitly.
2019-01-21 12:57:11 +01:00
Toni Barberà Melià
1eeb465a0c MDL-57898 core_customfield: Custom fields API
This commit is part of work on Custom fields API,
to minimize commit history in moodle core the work of a team of developers was split
into several commits with different authors but the authorship of individual
lines of code may be different from the commit author.
2019-01-18 09:02:30 +01:00
Andrew Nicols
4b71596fc9 MDL-49399 task: Add task logging API 2019-01-16 12:14:25 +08:00
Andrew Nicols
af540d426d MDL-49399 task: Add task log table 2019-01-15 07:56:20 +08:00
Damyon Wiese
365dce5fad Merge branch 'MDL-63696-master' of https://github.com/Dagefoerde/moodle 2018-11-19 14:51:46 +08:00
Jan Dageförde
f11a7d6a05
MDL-63696 oauth2: Store system account access tokens in DB 2018-11-16 11:43:16 +01:00
Andrew Nicols
0616f045c3 MDL-53566 core: Add support for context locking
This chagne adds support for a new feature known as Context Locking.
This allows a context to be locked, thereby removing all write
capabilities for all users (including admin) for that context, and all
child contexts.
2018-11-13 21:17:40 +08:00
Sara Arjona
5a1ea82835 MDL-58454 badges: Fix some minor errors for Open Badges v2 2018-11-05 18:41:54 +01:00
Tung Thai
d363a5c2e6 MDL-58454 badges: Open Badges Specification Version 2.0 Changes 2018-11-05 14:20:46 +01:00
Andrew Nicols
d4274bd951 Merge branch 'MDL-60520_master' of git://github.com/dmonllao/moodle 2018-10-29 07:39:58 +08:00
Mark Nelson
06cdb82d23 MDL-63280 core: correct index on upgrade vs install 2018-10-26 08:52:27 +08:00
Mark Nelson
76540bec52 MDL-63280 core: removed 'message_conversation_area' table
These new fields have been added to the 'message_conversations'
table.
2018-10-25 18:05:20 +08:00
Mark Nelson
f0e137c539 MDL-63280 core: minor changes after review
- Fixed reference to non-existent column 'timeread'.
- Fixed alignment issues.
- Fixed inconsistencies between upgrade.php and install.xml.
- Cleaned unit tests of unnecessary DB calls.
- Renamed 'get_does_conversation_area_enabled' to
  'is_conversation_area_enabled' and moved to api.php.
- Replaced "$mform->elementExists('enablemessaging')"
  check with a capability check.
- Removed the change of [] to array() in unrelated to upgrade code.
- Updated conversation 'timemodified' field when updating name.
- Bumped version based on latest master.
2018-10-25 17:51:04 +08:00
cescobedo
55fda006e3 MDL-63280 core_message: Create conversation area 2018-10-25 12:20:00 +08:00
David Monllao
ed12ba6ba8 MDL-60520 analytics: Per-model ml backend 2018-10-22 13:58:33 +02:00
Amaia Anabitarte
e2a687f689 MDL-63691 core: Column 'convhash' now accepts null
Index 'convhash' also changed to non-unique.
2018-10-22 09:47:19 +08:00
Mark Nelson
59fa0137b2 MDL-63691 core: updated 'message_conversations' table 2018-10-20 13:36:29 +08:00
Jake Dallimore
1f3c76f0ec MDL-63658 core_favourites: fix differences between install and upgrade 2018-10-18 09:40:07 +08:00
Jake Dallimore
1cb94eabb4 MDL-63658 core_favourites: add tables to the subsystem 2018-10-18 08:22:05 +08:00
Mark Nelson
d842d9a90a MDL-63211 core: added new database tables
Allow NULL values for timecreated in both message_contacts
and message_users_blocked because there is existing data
that has no timecreated value associated with it.
2018-09-28 09:15:52 +08:00
John Beedell
6189fda47f MDL-62708 question: Add idnumbers to question and question category 2018-09-21 12:26:24 +01:00
Jun Pataleta
a746b6e840 Merge branch 'MDL-37624-master' of git://github.com/mickhawkins/moodle 2018-07-04 15:33:43 +08:00
Michael Hawkins
4c838be5bb MDL-37624 calendar: Updated location db comment 2018-07-04 14:52:44 +08:00
David Mudrák
82b7ad70b1 MDL-62621 comments: Add missing indexes on comments table
The composite index over the fields contextid, commentarea and itemid
helps the comments API to load all comments for the given area
effectively.

The index over the userid field helps the privacy API to load all
comments by the given user.
2018-07-02 10:04:26 +02:00
Michael Hawkins
ef4e04ee26 MDL-37624 calendar: Added location support 2018-06-29 10:46:54 +08:00
Sara Arjona
88cb8b781d MDL-61601 cohort: Add theme support for cohorts
If enabled $CFG->allowcohortthemes, then themes can be set at the cohort level.
This will affect all users with only one cohort or more than one but with the same theme.
The default theme order will be: course, category, session, user, cohort, site.
2018-04-06 08:28:01 +02:00
Mark Nelson
e159b53b5b MDL-36941 core_message: improved performance of helper::get_messages()
Improved the query to use the 'convhash' field as well as adding an index.

Also fixed issue where 'timeread' was hardcoded as 0.
2018-03-23 12:30:30 +08:00
Mark Nelson
2ccbb8ed62 MDL-36941 core: added index to 'message_user_actions' table 2018-03-23 12:30:30 +08:00
Mark Nelson
0d657cc9b7 MDL-36941 core: removed 'message_working' table 2018-03-23 12:30:29 +08:00
Mark Nelson
b2cd17e6a9 MDL-36941 core: added 'convhash' field to quickly get conversations 2018-03-23 12:30:28 +08:00
Mark Nelson
a63f98245c MDL-36941 core: added new messaging and notification tables 2018-03-23 09:27:56 +08:00
Eloy Lafuente (stronk7)
03141d1ae2 NOBUG: Fixed file access permissions 2018-03-08 13:29:02 +01:00
Ryan Wyllie
5436b0ed02 MDL-61363 tag: allow tagging in different context to item 2018-03-07 10:31:46 +08:00
sam marshall
8736fbc190 MDL-60981 core_search: New indexpriority field in search index queue
Adds indexpriority field to the database table which holds a queue of
indexing requests. This allows for potentially large area reindexes
to have a lower priority, so as not to halt the special indexes that
run after a course restore.
2017-12-22 13:05:10 +00:00
Jun Pataleta
10c607a9bc MDL-50666 core: Add allowview key in install.xml 2017-12-20 14:46:42 +13:00
Andrew Hancox
a63cd3e2ca MDL-50666 core: Add function get_viewable_roles to set role visibility 2017-12-19 13:53:23 +13:00
Shamim Rezaie
9d27b68ce8 MDL-59438 calendar: Added a foreign key and an index
Added foreign key constraint to the event.subscriptionid column.
Also added index to the event.uuid column.
2017-12-11 12:54:49 +08:00
yair.spielmann
b323508554
MDL-59512 tool_oauth2: add option for basic authentication 2017-11-17 10:15:29 +01:00
Andrew Nicols
b9fd516407 MDL-60361 calendar: Support all event types for calendar subs 2017-11-03 11:27:40 +08:00
David Monllao
2dca133916 MDL-59988 analytics: Process pending training and prediction files 2017-10-13 12:29:21 +02:00
Andrew Nicols
e61ad18e70 Merge branch 'MDL-55356-master' of https://github.com/sammarshallou/moodle 2017-10-12 11:28:04 +08:00
Jake Dallimore
0ce9026307 Merge branch 'MDL-59106_master' of git://github.com/markn86/moodle 2017-10-12 10:53:20 +08:00
sam marshall
eacb2bd11b MDL-55356 core_search: API to queue contexts for indexing
New API \core_search\manager::request_index($context, $areaid = '')
adds the given context to a list which is intended to be indexed
later by the scheduled task.
2017-10-11 17:17:07 +01:00
Damyon Wiese
f4594a22ec Merge branch 'MDL-37361-master-revised' of https://github.com/snake/moodle
Conflicts:
	lib/db/upgrade.php
	version.php
2017-10-10 17:32:47 +08:00
Eiz Eddin Al Katrib
a39918daae MDL-37361 completion: Enabled overriding activity completion status 2017-10-10 17:10:15 +08:00
Andrew Nicols
69ed35c92a Merge branch 'MDL-59694_master' of git://github.com/dmonllao/moodle 2017-10-10 11:37:49 +08:00
David Monllao
dd13fc222c MDL-59694 analytics: Track processed analysables 2017-10-09 07:47:28 +02:00
Mark Nelson
235da74e0b MDL-59106 core: added fields to 'analytics_predictions' table 2017-10-06 17:28:37 +08:00
Derek Henderson
a8fe168e08 MDL-55652 grades: Added timemodified as index grade tables
Added timemodified to grade_categories_history,
grade_items_history, grade_outcomes_history,and scale_history.
2017-10-04 12:07:01 +08:00
Andrew Nicols
7b1e5e6f3a MDL-59890 calendar: Add categoryid to DB 2017-09-29 08:57:08 +08:00