-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution:
Fixed
-
Affects Version/s:
None
-
-
Component/s:
None
-
- Refactor CronTasks and the `plugin_dir` column to support modules
- Add a `task_type` column, ENUM(system, plugin, module), default system, after `key`
- Rename the `plugin_dir` column to `dir`.
- Update the unique index for (`key`, `plugin_dir`) to (`key`, `task_type`, `dir`)
- Update for backward compatibility
- Update all returned objects to contain a 'plugin_dir' column. If `type` is 'plugin' then set 'plugin_dir' to the value of 'dir', otherwise null. TEST
- Update existing CronTasks methods and queries that use 'plugin_dir' to continue to work as before. TEST
- Add any new methods necessary to implement the same functionality on the new structure. Deprecate existing methods accordingly. TEST
- Update all core system calls to CronTasks to use the new methods. TEST
- (Create new tasks for each core plugin that uses cron tasks to update them accordingly)