Upgrade to v3 修改记录
升级流程
- 备份数据库,避免升级失败导致数据丢失。
- 后台->仪表盘->设置->版本类型
- 选择「测试版」
- 由于本次跨框架版本的升级,只能在终端里执行升级,为确定您已经准备好,所以需在后台选择「测试版」,但是升级后是正式版。
- 删除网站客户端插件,避免冲突。直接删除文件夹。
/plugins/Moments/plugins/ThemeFrame/plugins/WebFrame/plugins/ForumQ/plugins/ForumX/plugins/ZhijieWeb
- 移除旧的依赖
- 终端里执行
composer remove fresns/web-engine
- 终端里执行
- 执行升级指令
- 终端里执行
php artisan fresns:upgrade - 如遇报错,再次执行升级指令,因框架变化,需要执行 2~3 次升级。
- 终端里执行
注意事项:
- 后台登录入口,配置项变化,所以重置为默认路径了
/fresns/admin .env配置中DB_TIMEZONE修改为APP_TIMEZONE.env配置中CACHE_DRIVER修改为CACHE_STORE,如果配置中没有,则需要新增一个,值可以选为CACHE_STORE=file- 发信设置,邮件模板的变量名
{sitename}修改为{name}
以下内容为开发者阅读,使用者忽略
数据库
表和字段
- 删除数据表
languages,多语言字段改为json格式,多语言值存在字段里,不单独存表。因为多语言不单独建表,所以语言配置创建后不支持修改语言标签。 - 所有
rating字段名修改为sort_order - 所有
more_json字段名修改为more_info - 数据表
groups- 删除字段
type
- 删除字段
- 新增数据表
geotagscitys
- 移除数据表
block_wordsplacementslanguagesuser_blockspost_appendscomment_appends
配置键名
- 菜单配置键名以
menu_开头改为channel_开头 - 栏目配置键名以
menu_开头改为column_开头 site_copyright修改为site_copyright_nameaccount_cookies_status修改为account_cookie_statusaccount_terms修改为account_terms_policyaccount_privacy修改为account_privacy_policyaccount_cookies修改为account_cookie_policyaccount_delete修改为account_delete_policyaccount_real_name_service修改为account_kyc_servicewallet_withdraw_verify修改为wallet_withdraw_check_kycban_names修改为user_ban_namesview_posts_by_follow_object修改为view_posts_by_timelinesview_comments_by_follow_object修改为view_comments_by_timelinesit_home_list修改为profile_default_homepage
命令字
getPostByAll修改为getPostsgetPostByFollow修改为getPostsByTimelinesgetPostByNearby修改为getPostsByNearbygetCommentByAll修改为getCommentsgetCommentByFollow修改为getCommentsByTimelinesgetCommentByNearby修改为getCommentsByNearbyverifyUrlAuthorization修改为checkAccessToken- 文件新增命令字
getAntiLinkFileConfigUrl
语言包
- 除「政策条款」外,所有多语言配置项都并入语言包配置
- 语言标识名
rankNum修改为sortOrder - 语言标识名
getLocationError修改为errorGetLocation - 语言标识名
userExtcreditsLogPlugin修改为userExtcreditsLogApp - 语言标识名
accountRealName修改为accountKyc - 语言标识名
userPassword修改为userPin - 语言标识名
userAuthPassword修改为userAuthPin - 语言标识名
userAuth修改为userEnter - 语言标识名
renewal修改为privateRenewal - 语言标识名
settingConnect修改为settingConnects - 语言标识名
userDeactivate修改为userDeactivated - 语言标识名
notificationLike修改为notificationLiked - 语言标识名
notificationDislike修改为notificationDisliked - 语言标识名
notificationFollow修改为notificationFollowed - 语言标识名
notificationBlock修改为notificationBlocked - 语言标识名
notificationMention修改为notificationMentioned - 语言标识名
notificationComment修改为notificationCommented - 语言标识名
notificationQuote修改为notificationQuoted - 语言标识名
editorFullFunctions修改为editorGoTo - 语言标识名
editorRequired修改为required - 语言标识名
editorOptional修改为optional - 语言标识名
editorVideoPlay修改为editorVideoPlayTip
插件机制
- 回调功能,路径变量名
authorization修改为accessToken
API
接口地址
/global/code-messages移除该接口/global/block-words移除该接口/common/upload-log移除该接口/account/register移除该接口/account/reset-password移除该接口/account/verify-identity移除该接口/account/apply-delete移除该接口/account/recall-delete移除该接口/account/login接口地址修改为/account/auth-token/account/wallet-logs接口地址修改为/account/wallet-records/user/auth接口地址修改为/user/auth-token/user/panel接口地址修改为/user/overview/notification/mark-as-read接口地址修改为/notification/read-status/conversation/pin接口地址修改为/conversation/{uidOrUsername}/pin/conversation/mark-as-read接口地址修改为/conversation/{uidOrUsername}/read-status/post/follow接口地址修改为/post/timelines/post/{pid}/logs接口地址修改为/post/{pid}/histories/post/{pid}/log/{logId}接口地址修改为/post/history/{hpid}/detail/comment/follow接口地址修改为/comment/timelines/comment/{pid}/logs接口地址修改为/comment/{pid}/histories/comment/{pid}/log/{logId}接口地址修改为/comment/history/{hpid}/detail/editor/{type}/config接口地址修改为/editor/{type}/configs/editor/{type}/quick-publish接口地址修改为/editor/{type}/publish/editor/{type}/create接口地址修改为/editor/{type}/draft/editor/{type}/generate/{fsid}接口地址修改为/editor/{type}/edit/{fsid}/editor/{type}/create接口地址修改为/editor/{type}/draft/editor/{type}/{did}接口地址修改为/editor/{type}/draft/{did}
接口参数
/global/configs- 移除参数
tags
- 移除参数
/global/roles- 参数名
ids修改为rids - 移除参数
type
- 参数名
/user/mark- 参数名
interactionType修改为markType - 参数名
markType修改为type
- 参数名
/user/mark-note- 参数名
markType修改为type - 移除参数
interactionType
- 参数名
/notification/list- 参数名
userWhitelistKeys修改为whitelistUserKeys - 参数名
userBlacklistKeys修改为blacklistUserKeys - 参数名
whitelistKeys修改为whitelistInfoKeys - 参数名
blacklistKeys修改为blacklistInfoKeys - 返回结果,参数名
id修改为nmid - 返回结果,参数名
isAccessPlugin修改为isAccessApp - 返回结果,参数名
pluginUrl修改为appUrl
- 参数名
/conversation/list- 参数名
whitelistKeys修改为whitelistUserKeys - 参数名
blacklistKeys修改为blacklistUserKeys - 返回结果,参数名
latestMessage.id修改为cmid
- 参数名
/conversation/{uidOrUsername}/detail- 参数名
whitelistKeys修改为whitelistUserKeys - 参数名
blacklistKeys修改为blacklistUserKeys
- 参数名
/conversation/{uidOrUsername}/messages- 参数名
whitelistKeys修改为whitelistUserKeys - 参数名
blacklistKeys修改为blacklistUserKeys - 返回结果,参数名
id修改为cmid
- 参数名
/conversation/send-message- 返回结果,参数名
id修改为cmid
- 返回结果,参数名
/conversation/delete- 参数名
messageIds修改为cmids
- 参数名
/post/list- 新增参数
sincePid - 新增参数
beforePid - 新增参数
whitelistGroupKeys - 新增参数
blacklistGroupKeys - 新增参数
whitelistHashtagKeys - 新增参数
blacklistHashtagKeys - 新增参数
whitelistGeotagKeys - 新增参数
blacklistGeotagKeys - 新增参数
whitelistAuthorKeys - 新增参数
blacklistAuthorKeys - 新增参数
whitelistQuotedPostKeys - 新增参数
blacklistQuotedPostKeys - 新增参数
whitelistPreviewLikeUserKeys - 新增参数
blacklistPreviewLikeUserKeys - 新增参数
whitelistPreviewCommentKeys - 新增参数
blacklistPreviewCommentKeys
- 新增参数
/editor/{type}/configs- 参数
uploadForm修改为uploadType - 参数
toolbar.title.view修改为inputDisplay - 参数
map修改为mapUrl
- 参数
/editor/{type}/publish- 参数
postQuotePid修改为quotePid - 参数
postGid修改为gid - 参数
postTitle修改为title - 参数
map修改为location - 参数
postIsCommentDisabled修改为commentDisabled - 参数
postIsCommentPrivate修改为commentPrivate - 返回结果,参数名
draftId修改为did
- 参数
通用数据结构
- 用户
- 新增参数
moreInfo - 参数
verifiedStatus修改为verified - 参数
hasPassword修改为hasPin - 参数
rid类型修改为 String - 参数
lastPublishPost修改为lastPublishPostDateTime - 参数
lastPublishComment修改为lastPublishCommentDateTime - 参数
lastEditUsername修改为lastEditUsernameDateTime - 参数
lastEditNickname修改为lastEditNicknameDateTime - 参数
likeMeCount修改为likerCount - 参数
dislikeMeCount修改为dislikerCount - 参数
followMeCount修改为followerCount - 参数
blockMeCount修改为blockerCount - 移除参数
rolePermissions
- 新增参数
- 小组
- 新增参数
moreInfo - 参数
gname修改为name - 参数
category修改为parentInfo - 参数
mode修改为privacy - 参数
modeEndAfter修改为privateEndAfter - 参数
find修改为visibility - 参数
subGroupPost修改为canPublish - 移除参数
type - 移除参数
contentMeta
- 新增参数
- 话题
- 新增参数
moreInfo - 参数
hname修改为name
- 新增参数
- 帖子
- 新增参数
moreInfo - 参数
moreJson修改为moreInfo - 参数
location修改为geotag - 参数
isMe修改为isAuthor - 参数
isPluginEditor修改为isAppEditor - 参数
isCommentHidden,isCommentDisabled,isCommentPrivate合并进commentConfig参数中,并且去除前缀isComment
- 新增参数
- 历史帖子
- 参数
id修改为hpid,类型修改为 String - 参数
isPluginEditor修改为isAppEditor - 参数
mapJson修改为mapInfo - 参数
readJson修改为readConfig - 参数
userListJson修改为affiliatedUserConfig - 参数
isUserList修改为hasUserList - 参数
commentBtnJson修改为commentBtnConfig - 参数
isCommentButton修改为commentHasButton - 参数
isCommentDisabled,isCommentPrivate合并进commentConfig参数中,并且去除前缀isComment - 参数
pluginFskey修改为appFskey - 参数
pluginUrl修改为appUrl - 涉及
btn的参数,全部改用全称button
- 参数
- 评论
- 新增参数
previewLikeUsers - 参数
subComments修改为previewComments - 参数
isCommentPrivate修改为isPrivate - 参数
moreJson修改为moreInfo - 参数
location修改为geotag - 参数
isMe修改为isAuthor - 参数
isPluginEditor修改为isAppEditor
- 新增参数
- 历史评论
- 参数
id修改为hcid,类型修改为 String - 参数
isPluginEditor修改为isAppEditor - 参数
mapJson修改为mapInfo - 涉及
btn的参数,全部改用全称button
- 参数
- 文件
- 参数
moreJson修改为moreInfo - 移除参数
imageConfigUrl
- 参数
- 扩展
- 参数
imageUrl修改为image - 参数
imageActiveUrl修改为activeImage - 参数
pluginUrl修改为appUrl - 参数
accessUrl修改为appUrl - 参数
moreJson修改为moreInfo - 参数
infoBoxType修改为type - 参数
infoBoxTypeString修改为typeString
- 参数
- 所有通用数据里互动参数
- 参数
likeSetting修改为likeEnabled - 参数
dislikeSetting修改为dislikeEnabled - 参数
followSetting修改为followEnabled - 参数
blockSetting修改为blockEnabled - 参数
followNote和blockNote合并为note
- 参数