MDL-61667 analytics: Create missing models on install/upgrade
authorDavid Mudrák <david@moodle.com>
Tue, 12 Mar 2019 08:45:26 +0000 (09:45 +0100)
committerDavid Mudrák <david@moodle.com>
Mon, 1 Apr 2019 12:23:06 +0000 (14:23 +0200)
commit606c3be0f647103ca32e78d9c4d7a2a036ff4b77
treeb8ddf3bedd3d2f8c05f293ee0d3ab5cd763a5a4b
parentaa8af6fcfc11d47fe3f8e25338c621e8bc778f4b
MDL-61667 analytics: Create missing models on install/upgrade

Similarly to how the scheduled tasks work, we now automatically check
and make sure that all the models specified in the component's
db/analytics.php file exist during the installation or upgrade of the
component.
analytics/classes/manager.php
analytics/tests/manager_test.php
analytics/upgrade.txt
lib/db/analytics.php [new file with mode: 0644]
lib/db/upgrade.php
lib/upgradelib.php