generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add migration supports for attachment (#21)
#### What type of PR is this? /kind feature #### What this PR does / why we need it: 增加 1.x 版本附件的迁移功能。 关于云存储支持: Halo 2.x 云存储需要插件 s3 的支持,详见 https://github.com/halo-sigs/plugin-s3 **注意:目前只支持 阿里云、腾讯云、百度云、七牛云 等支持 s3 规范的云存储迁移。** #### Which issue(s) this PR fixes: #### Special notes for your reviewer: 1. 从 Halo 1.x 版本中导出 json 数据文件 2. 将 1.x 工作目录下的 `upload` 目录里的所有文件夹(不包括 upload 目录本身)移动到 2.0 工作目录下的 `attachments\migrate-from-1.x` 文件夹 3. 安装可运行插件 [plugin-migrate-1.1.0-SNAPSHOT.jar.zip](https://github.com/halo-sigs/plugin-migrate/files/11229003/plugin-migrate-1.1.0-SNAPSHOT.jar.zip) 4. 安装 [plugin-s3](https://github.com/halo-sigs/plugin-s3) 插件 5. 点击“选择附件存储策略”,选择 1.x 各附件存储位置所对应的存储策略。 6. 点击“开始导入”,导入完成后,前往“附件“菜单查看是否导入成功 #### Does this PR introduce a user-facing change? ```release-note 增加 Halo 1.x 中附件的迁移功能 ```
- Loading branch information
Showing
5 changed files
with
379 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.