This is an automated email from the ASF dual-hosted git repository. dockerzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push: new e57d7dad3 [INLONG-7104][Manager] Add database change script of 1.5.0 for InLongManager (#7105) e57d7dad3 is described below commit e57d7dad3caf208e292c2bf77df3e049d673bb01 Author: feat <featzh...@outlook.com> AuthorDate: Tue Jan 3 16:46:36 2023 +0800 [INLONG-7104][Manager] Add database change script of 1.5.0 for InLongManager (#7105) --- .../src/main/assemblies/release.xml | 3 ++ inlong-manager/manager-web/sql/changes-1.5.0.sql | 40 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/inlong-distribution/src/main/assemblies/release.xml b/inlong-distribution/src/main/assemblies/release.xml index 0cef9e1e7..aeb0d376a 100644 --- a/inlong-distribution/src/main/assemblies/release.xml +++ b/inlong-distribution/src/main/assemblies/release.xml @@ -182,6 +182,9 @@ <fileSet> <directory>../inlong-manager/manager-web/target/apache-inlong-manager-web-${project.version}-bin/sql</directory> <outputDirectory>../docker/docker-compose/sql</outputDirectory> + <excludes> + <exclude>changes-1.5.0.sql</exclude> + </excludes> </fileSet> </fileSets> diff --git a/inlong-manager/manager-web/sql/changes-1.5.0.sql b/inlong-manager/manager-web/sql/changes-1.5.0.sql new file mode 100644 index 000000000..4b655bc2c --- /dev/null +++ b/inlong-manager/manager-web/sql/changes-1.5.0.sql @@ -0,0 +1,40 @@ +/* + * 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.4.0 to the current version 1.5.0. +-- When upgrading to version 1.5.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_group` + ADD COLUMN `data_report_type` int(4) DEFAULT '0' COMMENT 'Data report type. 0: report to DataProxy and respond when the DataProxy received data. 1: report to DataProxy and respond after DataProxy sends data. 2: report to MQ and respond when the MQ received data'; + + +ALTER TABLE `inlong_cluster_node` + ADD COLUMN `node_load` int(11) DEFAULT '-1' COMMENT 'Current load value of the node'; + + +ALTER TABLE `inlong_cluster_node` + ADD COLUMN `node_tags` varchar(512) DEFAULT NULL COMMENT 'Cluster node tag, separated by commas, only uniquely identified by parent_id and ip'; + + +ALTER TABLE `stream_source` + ADD COLUMN `inlong_cluster_node_tag` varchar(512) DEFAULT NULL COMMENT 'Cluster node tag'; \ No newline at end of file