From 570149f20f41eae83eccaa138270313fe3bfeffb Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 28 Apr 2020 21:17:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8Addl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V2__metersphere_ddl.sql | 25 +++++++++++++++++++ .../resources/db/migration/V3__init_data.sql | 1 + package-lock.json | 15 ++++++++++- 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/backend/src/main/resources/db/migration/V2__metersphere_ddl.sql b/backend/src/main/resources/db/migration/V2__metersphere_ddl.sql index facbb21e3f..d400cae649 100644 --- a/backend/src/main/resources/db/migration/V2__metersphere_ddl.sql +++ b/backend/src/main/resources/db/migration/V2__metersphere_ddl.sql @@ -319,4 +319,29 @@ CREATE TABLE IF NOT EXISTS `test_plan_test_case` ( DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_bin; +CREATE TABLE IF NOT EXISTS `test_case_report_template` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL COMMENT 'Test case report template name', + `workspace_id` varchar(50) DEFAULT NULL COMMENT 'Workspace ID this project belongs to', + `content` longtext COMMENT 'Template content (JSON format)', + PRIMARY KEY (`id`) +) + ENGINE=InnoDB + DEFAULT CHARSET=utf8mb4 + COLLATE=utf8mb4_bin; + +CREATE TABLE IF NOT EXISTS `test_case_report` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `name` varchar(64) NOT NULL COMMENT 'Test case report name', + `plan_id` bigint(50) DEFAULT NULL COMMENT 'Plan ID relation to', + `content` longtext COMMENT 'Report content (JSON format)', + PRIMARY KEY (`id`) +) + ENGINE=InnoDB + DEFAULT CHARSET=utf8mb4 + COLLATE=utf8mb4_bin; + -- track end + + + diff --git a/backend/src/main/resources/db/migration/V3__init_data.sql b/backend/src/main/resources/db/migration/V3__init_data.sql index 9cce9258e1..a66cc043ec 100644 --- a/backend/src/main/resources/db/migration/V3__init_data.sql +++ b/backend/src/main/resources/db/migration/V3__init_data.sql @@ -10,3 +10,4 @@ INSERT INTO role (id, name, description, type, create_time, update_time) VALUES INSERT INTO role (id, name, description, type, create_time, update_time) VALUES ('test_user', '测试人员', null, null, 1581576575948, 1581576575948); INSERT INTO role (id, name, description, type, create_time, update_time) VALUES ('test_viewer', 'Viewer', null, null, 1581576575948, 1581576575948); +INSERT INTO test_case_report_template (name,content) VALUES ("默认模版","{\"components\":[1,2,3,4,5],\"contentMap\":{\"richTextComponentTitleSet\":{},\"richTextComponentContentSet\":{}}}"); diff --git a/package-lock.json b/package-lock.json index 48e341a095..4927438eab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,3 +1,16 @@ { - "lockfileVersion": 1 + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "@ckeditor/ckeditor5-build-classic": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-classic/-/ckeditor5-build-classic-18.0.0.tgz", + "integrity": "sha512-7nyaDU5sUSl+7wXPwr0d5bOlO2e0LRQh2iJJCJfAjjuUESwtiBGoFC+Ql5dEht0xlfARoSWQMlkUvGuHOVja7A==" + }, + "@ckeditor/ckeditor5-vue": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-vue/-/ckeditor5-vue-1.0.1.tgz", + "integrity": "sha512-4MaQwZ04cWwqYW0732sg2aqx9ILeHIP0LSLKUuLCLR21qYONZPvxY/V/czh1DH99toaL/iwPvEoJtO2ldriPaA==" + } + } }