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 facbb21e3f934bb808e185ac81cd23d798434f02..d400cae649afba9776c6ebfe623199c6e9ceb49f 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 9cce9258e15a2cb8129c0ddf8521417c357f0500..a66cc043ec838ad39a05cf373a58d5f4eea5a9dc 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 48e341a0954d5f8c2accf3a6731be28e5bb9c0de..4927438eab426c059bc6cd2ae6f9b01ae1fbf711 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==" + } + } }