From 3cafaa4b029d2d51d10f3097a0f97fa1386874c8 Mon Sep 17 00:00:00 2001 From: Adamyuanyuan Date: Mon, 13 Jul 2020 20:55:15 +0800 Subject: [PATCH] add dss 0.9.0 upgrade notes --- docs/en_US/ch2/DSS_0.9.0_upgrade_notes.md | 16 ++++++++++++++++ ...5\207\347\272\247\350\257\264\346\230\216.md" | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 docs/en_US/ch2/DSS_0.9.0_upgrade_notes.md create mode 100644 "docs/zh_CN/ch2/DSS_0.9.0_\345\215\207\347\272\247\350\257\264\346\230\216.md" diff --git a/docs/en_US/ch2/DSS_0.9.0_upgrade_notes.md b/docs/en_US/ch2/DSS_0.9.0_upgrade_notes.md new file mode 100644 index 000000000..cee4ec591 --- /dev/null +++ b/docs/en_US/ch2/DSS_0.9.0_upgrade_notes.md @@ -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. diff --git "a/docs/zh_CN/ch2/DSS_0.9.0_\345\215\207\347\272\247\350\257\264\346\230\216.md" "b/docs/zh_CN/ch2/DSS_0.9.0_\345\215\207\347\272\247\350\257\264\346\230\216.md" new file mode 100644 index 000000000..619959583 --- /dev/null +++ "b/docs/zh_CN/ch2/DSS_0.9.0_\345\215\207\347\272\247\350\257\264\346\230\216.md" @@ -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),用户可根据实际情况新增用户空间,并调整原有项目的所属工作空间。 \ No newline at end of file