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

41 lines
2.5 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的冲突问题因为V1.0.0版本同样默认启用flyway如果不解决冲突代码启动就会报错
从0.9.9版本更新到1.0.0版本的更新sql请参照下面的步骤内容进行操作
2 years ago
如果从更低的版本升级到V1.0.0请先升级到V0.9.9版本,可参考之前版本的[releases](https://gitee.com/anji-plus/report/releases)。
**如果从V0.9.9版本更新至V1.0.0版本后需要继续使用flyway功能必需解决新旧sql的冲突问题**
- 1、将自己系统的数据库数据进行备份
- 2、手动执行V0.9.9更新的V1.0.0增量sql
```
INSERT INTO `aj_report`.`gaea_dict`(`dict_name`, `dict_code`, `remark`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('下拉框属性', 'SELECT_PROPERTIES', '下拉框属性', 'admin', NOW(), 'admin', NOW(), 1);
INSERT INTO `aj_report`.`gaea_dict_item`(`dict_code`, `item_name`, `item_value`, `item_extend`, `enabled`, `locale`, `remark`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('SELECT_PROPERTIES', '显示值', 'label', NULL, 1, 'zh', NULL, NULL, 'admin', NOW(), 'admin', NOW(), 1);
INSERT INTO `aj_report`.`gaea_dict_item`(`dict_code`, `item_name`, `item_value`, `item_extend`, `enabled`, `locale`, `remark`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('SELECT_PROPERTIES', '提交值', 'value', NULL, 1, 'zh', NULL, NULL, 'admin', NOW(), 'admin', NOW(), 1);
```
- 3.清空flyway_schema_history表并插入一条数据到表中sql如下
2 years ago
```
truncate table aj_report.flyway_schema_history;
INSERT INTO aj_report.flyway_schema_history (installed_rank, version, description, type, script, checksum, installed_by, installed_on, execution_time, success)
VALUES (1, '1.0.0', 'init', 'SQL', 'V1.0.0__init.sql', -1762151859, 'root', '2023-05-05 15:39:07', 588, 1);
2 years ago
```
<br>
2 years ago
**如果是直接使用1.0.0版本,以上都不需要处理**
2 years ago
## 新增/修复