Skip to content

Commit 11f4063

Browse files
committed
add dss 0.9.0 upgrade notes
1 parent a0692cf commit 11f4063

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# DSS 0.9.0 upgrade notes
2+
3+
In DSS-0.9.0, the concept “workspace” is added. If you upgrade from DSS 0.7 or DSS 0.8 to DSS0.9.0. After completing platform deployment, the following adjustments are needed to be made: field `application_id` of table `dss_onestop_menu_application` is NULL by default., which is a foreign key references field `id` of table `dss_application`. So the field `application_id` of table `dss_onestop_menu_application` needed to be filled choosing from field `id` of table `dss_application`, which accords to the actual situation of business system, so as to connect workspace with each application.
4+
E.g:
5+
```
6+
-- Update application_id corresponding to workflow application
7+
UPDATE dss_onestop_menu_application SET application_id = 2 WHERE id = 1;
8+
-- Update application_id corresponding to Scriptis application
9+
UPDATE dss_onestop_menu_application SET application_id = 1 WHERE id = 4;
10+
```
11+
In addition, for users who have deployed DSS with edition 0.8.0 or below, the following adjustments are required:
12+
Since field `workspace_id` is added to table `dss_project`, which is a foreign key references field `id` of table `dss_workspace`. The following command needs to be executed:
13+
```
14+
ALTER TABLE dss_project ADD workspace_id bigint(20) DEFAULT 1;
15+
```
16+
By default, original projects belongs to default workspace(workspace_id=1), users may add more workspace according to actual situation, and adjust the workspace of original projects as needed.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# DSS-0.9.0升级说明
2+
3+
本次DSS-0.9.0版本新增用户工作空间(workspace)概念,如果您是从 DSS0.7 或 DSS0.8 升级到 DSS0.9.0,在完成平台部署后,需对数据库表做一些调整需作如下调整:
4+
dss_onestop_menu_application表中的application_id字段默认为空,该字段与dss_application表的id字段关联,需根据用户业务系统的实际情况与dss_application表进行关联,将用户工作空间与各应用打通。例如:
5+
```
6+
-- 更新workflow应用对应的application_id
7+
UPDATE dss_onestop_menu_application SET application_id = 2 WHERE id = 1;
8+
-- 更新Scriptis应用对应的application_id
9+
UPDATE dss_onestop_menu_application SET application_id = 1 WHERE id = 4;
10+
```
11+
此外,对于已部署DSS-0.8.0及以下版本的用户,还需做如下调整:
12+
dss_project表新增workspace_id字段,该字段与dss_workspace表的id字段关联,需在数据库执行如下命令:
13+
```
14+
ALTER TABLE dss_project ADD workspace_id bigint(20) DEFAULT 1;
15+
```
16+
默认情况下,所有原有项目都将归属默认工作空间(workspace_id=1),用户可根据实际情况新增用户空间,并调整原有项目的所属工作空间。

0 commit comments

Comments
 (0)