Skip to content

Commit

Permalink
[INLONG-10096][Manager] Add change sql
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweng11 committed May 13, 2024
1 parent f3fb411 commit 1f2505a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ CREATE TABLE IF NOT EXISTS `inlong_cluster_node`
`type` varchar(20) NOT NULL COMMENT 'Cluster type, such as: AGENT, DATAPROXY, etc',
`ip` varchar(512) NOT NULL COMMENT 'Cluster IP, separated by commas, such as: 127.0.0.1:8080,host2:8081',
`port` int(6) NULL COMMENT 'Cluster port',
`username` varchar(256) DEFAULT NULL COMMENT 'Username for ssh',
`password` varchar(256) DEFAULT NULL COMMENT 'Password for ssh',
`ssh_port` int(11) DEFAULT NULL COMMENT 'Ssh port',
`protocol_type` varchar(20) DEFAULT NULL COMMENT 'DATAPROXY Source listen protocol type, such as: TCP/HTTP',
`node_load` int(11) DEFAULT '-1' COMMENT 'Current load value of the node',
`ext_params` mediumtext DEFAULT NULL COMMENT 'Another fields will be saved as JSON string',
Expand Down
3 changes: 3 additions & 0 deletions inlong-manager/manager-web/sql/apache_inlong_manager.sql
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ CREATE TABLE IF NOT EXISTS `inlong_cluster_node`
`type` varchar(20) NOT NULL COMMENT 'Cluster type, such as: AGENT, DATAPROXY, etc',
`ip` varchar(512) NOT NULL COMMENT 'Cluster IP, separated by commas, such as: 127.0.0.1:8080,host2:8081',
`port` int(6) NULL COMMENT 'Cluster port',
`username` varchar(256) DEFAULT NULL COMMENT 'Username for ssh',
`password` varchar(256) DEFAULT NULL COMMENT 'Password for ssh',
`ssh_port` int(11) DEFAULT NULL COMMENT 'Ssh port',
`protocol_type` varchar(20) DEFAULT NULL COMMENT 'DATAPROXY Source listen protocol type, such as: TCP/HTTP',
`node_load` int(11) DEFAULT '-1' COMMENT 'Current load value of the node',
`ext_params` mediumtext DEFAULT NULL COMMENT 'Another fields will be saved as JSON string',
Expand Down
28 changes: 28 additions & 0 deletions inlong-manager/manager-web/sql/changes-1.13.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

-- This is the SQL change file from version 1.9.0 to the current version 1.10.0.
-- When upgrading to version 1.10.0, please execute those SQLs in the DB (such as MySQL) used by the Manager module.

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

USE `apache_inlong_manager`;

ALTER TABLE `inlong_cluster_node` ADD COLUMN `username` varchar(256) DEFAULT NULL COMMENT 'username for ssh';
ALTER TABLE `inlong_cluster_node` ADD COLUMN `password` varchar(256) DEFAULT NULL COMMENT 'password for ssh';
ALTER TABLE `inlong_cluster_node` ADD COLUMN `ssh_port` int(11) DEFAULT NULL COMMENT 'ssh port';

0 comments on commit 1f2505a

Please sign in to comment.