| @@ -4,11 +4,17 @@ | ||
| 4 | 4 | |
| 5 | 5 | use FluentBoards\App\Models\Task; |
| 6 | 6 | use FluentBoards\App\Models\TaskMeta; |
| 7 | 7 | use FluentBoards\App\Services\Constant; |
| 8 | +use FluentBoards\App\Services\IndexUpgradeService; | |
| 8 | 9 | |
| 9 | 10 | class UpdateHandler |
| 10 | 11 | { |
| 12 | + public function maybeUpgradeIndexes() | |
| 13 | + { | |
| 14 | + return (new IndexUpgradeService())->maybeUpgrade(); | |
| 15 | + } | |
| 16 | + | |
| 11 | 17 | public static function maybeSubtaskGroupSync() |
| 12 | 18 | { |
| 13 | 19 | $lastDbVersion = get_option('_fluent_boards_db_version'); |
| 14 | 20 | if (!$lastDbVersion || version_compare($lastDbVersion, FLUENT_BOARDS_DB_VERSION, '<')) { |