MDL-64553 message: Add index for the notifications.useridfrom field
commit9b90c17f74130f5ade56980eb06cae628ed59145
authorDavid Mudrák <david@moodle.com>
Fri, 11 Jan 2019 10:01:46 +0000 (11 11:01 +0100)
committerSara Arjona <sara@moodle.com>
Mon, 21 Jan 2019 12:26:33 +0000 (21 13:26 +0100)
tree751ca2f8f52d1f3b425e82ac2e4f3a2c2c338c76
parent3741df64feeab5d05171e36101d5c880898271a4
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.
lib/db/install.xml
lib/db/upgrade.php
version.php