migratetoflarum/recalculate-meta 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

migratetoflarum/recalculate-meta

Composer 安装命令:

composer require migratetoflarum/recalculate-meta

包简介

Re-calculate the meta information of discussions and users

README 文档

README

This extension allows to re-calculate the meta information of all discussions and users on demand.

Why you might need this extension:

  • You manually imported data into your forum and need to create the meta values
  • You manually deleted data from your forum and need to fix the meta values
  • A Flarum update changed the way the meta is calculated and you want to fix your existing data

A word of caution: if an extension makes changes to the way these meta values are calculated, then this script will probably break it and reset all values to the way Flarum calculates them out of the box!

I strongly recommend you test the command on a backup first before running it on your live data!

Installation and update

Compatible with both beta 13 and beta 14.

composer require migratetoflarum/recalculate-meta

Documentation

The extension is implemented as a command line utility. Enable the extension in Flarum admin panel, then open a terminal and cd into the Flarum folder.

To run the command with the default options:

php flarum migratetoflarum:recalculate-meta

You can enable or disable various calculations with command options, for example:

php flarum migratetoflarum:recalculate-meta --skip-users
php flarum migratetoflarum:recalculate-meta --do-discussion-number-index

To get a list of all available options, run:

php flarum help migratetoflarum:recalculate-meta

Removal

When you are done with the update, you can safely remove the extension. It does not need to stay installed.

composer remove migratetoflarum/recalculate-meta

Links

The initial version of this extension was sponsored by @Wadera

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固