-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #216 from Adamyuanyuan/master
add dss 0.9.0 upgrade notes
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# DSS 0.9.0 upgrade notes | ||
|
||
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. | ||
E.g: | ||
``` | ||
-- Update application_id corresponding to workflow application | ||
UPDATE dss_onestop_menu_application SET application_id = 2 WHERE id = 1; | ||
-- Update application_id corresponding to Scriptis application | ||
UPDATE dss_onestop_menu_application SET application_id = 1 WHERE id = 4; | ||
``` | ||
In addition, for users who have deployed DSS with edition 0.8.0 or below, the following adjustments are required: | ||
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: | ||
``` | ||
ALTER TABLE dss_project ADD workspace_id bigint(20) DEFAULT 1; | ||
``` | ||
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. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# DSS-0.9.0升级说明 | ||
|
||
本次DSS-0.9.0版本新增用户工作空间(workspace)概念,如果您是从 DSS0.7 或 DSS0.8 升级到 DSS0.9.0,在完成平台部署后,需对数据库表做一些调整需作如下调整: | ||
dss_onestop_menu_application表中的application_id字段默认为空,该字段与dss_application表的id字段关联,需根据用户业务系统的实际情况与dss_application表进行关联,将用户工作空间与各应用打通。例如: | ||
``` | ||
-- 更新workflow应用对应的application_id | ||
UPDATE dss_onestop_menu_application SET application_id = 2 WHERE id = 1; | ||
-- 更新Scriptis应用对应的application_id | ||
UPDATE dss_onestop_menu_application SET application_id = 1 WHERE id = 4; | ||
``` | ||
此外,对于已部署DSS-0.8.0及以下版本的用户,还需做如下调整: | ||
dss_project表新增workspace_id字段,该字段与dss_workspace表的id字段关联,需在数据库执行如下命令: | ||
``` | ||
ALTER TABLE dss_project ADD workspace_id bigint(20) DEFAULT 1; | ||
``` | ||
默认情况下,所有原有项目都将归属默认工作空间(workspace_id=1),用户可根据实际情况新增用户空间,并调整原有项目的所属工作空间。 |