You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by he...@apache.org on 2022/04/26 11:44:51 UTC

[incubator-inlong] branch master updated: [INLONG-3951][Manager] Unique index error for cluster_name in SQL file (#3952)

This is an automated email from the ASF dual-hosted git repository.

healchow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new ef2ad6cf0 [INLONG-3951][Manager] Unique index error for cluster_name in SQL file (#3952)
ef2ad6cf0 is described below

commit ef2ad6cf05ceb05c311debfd4dd93b8c9f56c2c0
Author: wangheng <67...@qq.com>
AuthorDate: Tue Apr 26 19:44:47 2022 +0800

    [INLONG-3951][Manager] Unique index error for cluster_name in SQL file (#3952)
---
 .../manager-test/src/main/resources/sql/apache_inlong_manager.sql       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inlong-manager/manager-test/src/main/resources/sql/apache_inlong_manager.sql b/inlong-manager/manager-test/src/main/resources/sql/apache_inlong_manager.sql
index 3eb4d1de1..64a388729 100644
--- a/inlong-manager/manager-test/src/main/resources/sql/apache_inlong_manager.sql
+++ b/inlong-manager/manager-test/src/main/resources/sql/apache_inlong_manager.sql
@@ -139,7 +139,7 @@ CREATE TABLE `inlong_cluster_node`
     `create_time` timestamp    NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Create time',
     `modify_time` timestamp    NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Modify time',
     PRIMARY KEY (`id`),
-    UNIQUE KEY `unique_cluster_node` (`cluster_name`, `type`, `ip`, `port`, `is_deleted`)
+    UNIQUE KEY `unique_cluster_node` (`parent_id`, `type`, `ip`, `port`, `is_deleted`)
 );
 
 -- ----------------------------