You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tanghe-report/doc/docs/guide/releases/1.0.0.md

29 lines
1.7 KiB
Markdown

2 years ago
## 注意事项
- 1.0版本调整了底层sql具体位置是report-core/src/main/resource/db.migration
删除了过往所有的sql现在此目录下sql仅包含aj_report基础信息库的相关sqlsql文件的命名也会和版本号保持一致
之前版本提供的示例数据(aj_report_init数据库的sql)aj_report_init.sql 文件放置在 doc/example目录下。
- 如果需要将之前版本的示例数据删除delete_aj_report_init.sql 文件放置在 doc/example目录下。
- 对于从之前版本升级到1.0.0版本为避免sql重复执行覆盖等问题1.0.0版本的配置项bootstrap.yml将默认禁用flyway
从0.9.9版本更新到1.0.0版本的更新sqlV0.9.9_U_V1.0.0.sql 文件放置在 doc/update1.0目录下,请参照下面的步骤内容进行操作,
如果从更低的版本升级到V1.0.0请先升级到V0.9.9版本,可参考之前版本的[releases](https://gitee.com/anji-plus/report/releases)。
**如果从V0.9.9版本更新至V1.0.0版本后需要继续使用flyway功能必需解决新旧sql的冲突问题**
- 0.将自己系统的数据库数据进行备份
- 1.手动执行V0.9.9_U_V1.0.0.sqldoc/update1.0 目录下)
- 2.插入一条数据到flyway_schema_history表中sql如下
```
INSERT INTO `aj_report`.`flyway_schema_history`(`installed_rank`, `version`, `description`, `type`, `script`, `checksum`, `installed_by`, `installed_on`, `execution_time`, `success`)
VALUES (25, '1.0.0', 'init', 'SQL', 'V1.0.0__init.sql', 166872711, 'root', '2023-01-10 07:31:07', 70, 1);
```
- 3.将配置项bootstrap.yml中的flyway改为true
**如果是直接使用1.0.0版本只需要将配置项bootstrap.yml中的flyway改为true即可**
## 新增/修复