From 7e7faa436a78af423d342c89e394fab4ec173c63 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 29 Apr 2020 15:54:45 +0800 Subject: [PATCH] log save +1 --- .../src/main/resources/db/migration/V2__metersphere_ddl.sql | 5 ++++- 1 file changed, 4 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 b7a3f1a2c..1738254d1 100644 --- a/backend/src/main/resources/db/migration/V2__metersphere_ddl.sql +++ b/backend/src/main/resources/db/migration/V2__metersphere_ddl.sql @@ -83,9 +83,12 @@ CREATE TABLE IF NOT EXISTS `load_test_report_result` ( COLLATE=utf8mb4_bin; CREATE TABLE IF NOT EXISTS `load_test_report_log` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, `report_id` varchar(50) NOT NULL, + `resource_id` varchar(50) DEFAULT NULL, `content` longtext, - PRIMARY KEY (`report_id`) + PRIMARY KEY (`id`), + KEY `load_test_report_log_report_id_resource_name_index` (`report_id`,`resource_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 -- GitLab