Unverified Commit 8bad3003 authored by Lex Li's avatar Lex Li Committed by GitHub

[Optimization] [SQL] Increase dinky_udf_manage table's class_name column's…

[Optimization] [SQL] Increase dinky_udf_manage table's class_name column's length from 50 to 100 (#3330)
parent b7c82edd
...@@ -2012,7 +2012,7 @@ drop table if exists `dinky_udf_manage`; ...@@ -2012,7 +2012,7 @@ drop table if exists `dinky_udf_manage`;
CREATE TABLE `dinky_udf_manage` ( CREATE TABLE `dinky_udf_manage` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) DEFAULT NULL COMMENT 'udf name', `name` varchar(50) DEFAULT NULL COMMENT 'udf name',
`class_name` varchar(50) DEFAULT NULL COMMENT 'Complete class name', `class_name` varchar(100) DEFAULT NULL COMMENT 'Complete class name',
`task_id` int(11) DEFAULT NULL COMMENT 'task id', `task_id` int(11) DEFAULT NULL COMMENT 'task id',
`resources_id` int(11) DEFAULT NULL COMMENT 'resources id', `resources_id` int(11) DEFAULT NULL COMMENT 'resources id',
`enabled` tinyint(1) DEFAULT 1 COMMENT 'is enable', `enabled` tinyint(1) DEFAULT 1 COMMENT 'is enable',
......
...@@ -4059,7 +4059,7 @@ CREATE TABLE dinky_udf_manage ...@@ -4059,7 +4059,7 @@ CREATE TABLE dinky_udf_manage
( (
id SERIAL PRIMARY KEY NOT NULL, id SERIAL PRIMARY KEY NOT NULL,
name VARCHAR(50), name VARCHAR(50),
class_name VARCHAR(50), class_name VARCHAR(100),
task_id INT, task_id INT,
resources_id INT, resources_id INT,
enabled BOOLEAN DEFAULT TRUE, enabled BOOLEAN DEFAULT TRUE,
......
/*
*
* 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.
*
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- Increase class_name column's length from 50 to 100.
ALTER TABLE dinky_udf_manage CHANGE COLUMN class_name class_name VARCHAR(100) null DEFAULT null COMMENT 'Complete class name';
SET FOREIGN_KEY_CHECKS = 1;
/*
*
* 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.
*
*/
-- Increase class_name column's length from 50 to 100.
ALTER TABLE dinky_udf_manage ALTER COLUMN class_name TYPE VARCHAR(100);
COMMENT ON COLUMN dinky_udf_manage.class_name IS 'Complete class name';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment